【问题标题】:Apache Permission Denied (Permissions 755)Apache 权限被拒绝(权限 755)
【发布时间】:2014-06-29 11:24:40
【问题描述】:

我收到消息:

Forbidden 
You don't have permission to access / on this server.

Apache 的路径是:/var/www。我的配置(/etc/apache2/{apache.conf, httpd.conf})是正确的,因为在其他时候,它是有效的。 /var/www 文件夹的权限为:755。

问题是:我删除了根 (/root) ant 的主文件夹,然后出现此错误...

/sites-available/000-defaults的文件配置:

DocumentRoot /var/www/
<Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>
        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

<Location /php/cron>
    Order Deny,Allow
    Deny from all
    Allow from localhost ip6-localhost 176.9.21.77
    Satisfy any
</Location>

Apache的错误日志:

(13)Permission denied: /.htaccess pcfg_openfile: 无法检查 htaccess 文件,确保它是可读的

【问题讨论】:

    标签: apache


    【解决方案1】:

    解决方案是文件夹/etc/apache2/中的权限。我们需要将 744 级权限修改为 755。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-08-13
      • 1970-01-01
      • 2018-06-11
      • 1970-01-01
      • 2022-01-18
      • 2014-04-10
      相关资源
      最近更新 更多