[英]Apache 403 everywhere with XAMPP Linux
我對使用 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。
謝謝。
所以我發現我只需要授予對 Apache 的訪問權限,好吧,我知道我需要這樣做,但我嘗試了我想到的一切。 我的
須藤 chmod ugo+rwx
我知道這不是最安全的方式,但我現在只是本地托管,所以這不是什么大問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.