问题:
You don't have permission to access / on this server apache 2.2.15
检查日志发现问题:
htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
搜索:
原因,启用了selinux,导致不正常。
禁用selinux: setenforce 0 临时关闭。
恢复正常.
修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled
下面的两行命令,也能半部分恢复正常,但是个别网站的mysql有问题。
setsebool -P httpd_enable_homedirs true
chcon -R -t httpd_sys_content_t /home/www/html/