今天我login发现我甚至不能cd到/ var /目录。 我已经检查了所有权,这是正确的。
/ var / www /无法从Web浏览器访问。 它说403被禁止。
错误日志显示
/var/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
尝试
chmod 501 /var
我的家里也有同样的问题
Permission denied: /var/www/username/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
我的所有网站都在/var/www/username/www
所以解决scheme是
chmod 501 /var/www/username