【问题标题】:Apache 403 everywhere with XAMPP LinuxApache 403 随处可见 XAMPP Linux
【发布时间】: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 的权限系统也很陌生。

标签: linux apache xampp


【解决方案1】:

所以我发现我只需要授予对 Apache 的访问权限,好吧,我知道我需要这样做,但我尝试了我想到的一切。我的

sudo chmod ugo+rwx

我知道这不是最安全的方法,但我现在只是本地托管,所以这不是什么大不了的事。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-18
    • 2014-09-16
    • 1970-01-01
    • 2011-09-07
    • 1970-01-01
    相关资源
    最近更新 更多