【发布时间】:2021-01-04 12:23:13
【问题描述】:
我对使用 Apache 很陌生,我们在这里使用 XAMPP,所以为了简单起见,我需要使用它。我在让 Apache 查看我的文件时遇到问题。我在 httpd 的日志中收到此错误:
[Thu Sep 17 16:16:46.944172 2020] [core:error] [pid 10036] (13)Permission denied: [client ::1:39318] AH00035: access to / denied (filesystem path '/home/mrblob/Documents') because search permissions are missing on a component of the path
[Thu Sep 17 16:16:47.170688 2020] [core:error] [pid 10036] (13)Permission denied: [client ::1:39318] AH00035: access to /favicon.ico denied (filesystem path '/home/mrblob/Documents') because search permissions are missing on a component of the path, referer: http://localhost:81/
我的网站文件是 /home/mrblob/Documents/web/
我的 httpd.cnf 文件中有这个:
<Directory "/home/mrblob/Documents/web/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
Require all granted
Order allow,deny
AllowOverride None
Allow from all
</Directory>
我还尝试了不同权限的 chmod...我尝试了很多不同的东西...我还没有让它工作。仅供参考 phpmyadmin 以及 XAMPP 的仪表板工作正常。我想要的任何其他页面都会抛出 403。
谢谢。
【问题讨论】:
-
我对 Linux 的权限系统也很陌生。