V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
MrMike
V2EX  ›  CentOS

急: LAMP 403 禁止访问问题

  •  
  •   MrMike · 2017-10-10 04:04:14 +08:00 · 1494 次点击
    这是一个创建于 2361 天前的主题,其中的信息可能已经有所发展或是发生改变。
    全新的 Centos 7 + Apache 2 + PHP 5.6 + MySQL 5.6。
    配置好域名后,访问网站时,一直是 403 错误。

    AH00529: /var/www/****/web/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/***/web/' is executable

    vhost 文件:

    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /home/webmaster/public_html/web
    ServerName www.example.com
    ServerAlias example.com *.example.com
    ErrorLog logs/example.com-error_log
    CustomLog logs/example.com-access_log common
    <Directory "/home/webmaster/public_html/web">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
    </Directory>
    </VirtualHost>

    如果是访问 web 下的文件,也是同样的报错,只是提示某一个文件不能读取。

    1,已经将 web 及其父级文件夹都设置成了 777 或 755 可读写权限;
    2,关闭了 firewalld 防火墙;
    3,关闭了 SELINUX ;

    但是依然报 403 错误,请问如何处理?
    1 条回复    2017-10-10 04:51:31 +08:00
    MrMike
        1
    MrMike  
    OP
       2017-10-10 04:51:31 +08:00
    还是文件夹权限问题。问题解决,结贴。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3228 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 13:58 · PVG 21:58 · LAX 06:58 · JFK 09:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.