V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
MrMike
V2EX  ›  CentOS

急: LAMP 403 禁止访问问题

  •  
  •   MrMike · Oct 10, 2017 · 2035 views
    This topic created in 3135 days ago, the information mentioned may be changed or developed.
    全新的 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 replies    2017-10-10 04:51:31 +08:00
    MrMike
        1
    MrMike  
    OP
       Oct 10, 2017
    还是文件夹权限问题。问题解决,结贴。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3879 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 04:47 · PVG 12:47 · LAX 21:47 · JFK 00:47
    ♥ Do have faith in what you're doing.