Macos 10.12下apache的VirtualHosts报403的问题

升级Macos,结果apache下的虚拟主机死活安装不好

一直报权限错误

Permission denied: [client 127.0.0.1:54854] AH00035: access to / denied (filesystem path '/Documents/project') because search permissions are missing on a component of the path

 

 

Permission denied: [client 127.0.0.1:52223] AH00529: /Documents/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/Documents/' is executable

 

但是我的虚拟主机的documentroot目录设置的是/Documents/phpmyadmin

 

最后执行一下

chmod -+/Documents/

问题都解决了