Apache提示You don't have permission to access / on this server 解决

本文链接:https://blog.csdn.net/Niu_Eva/article/details/90741894

Apache提示You don’t have permission to access / on this server 解决
网上好多解决方案
将"Require all denied"修改成"Require all granted";
等等
试了所有的都没解决我的问题
建议针对/private/var/log/apache2/中error来看
[Sun Jun 02 18:00:37.760853 2019] [core:error] [pid 1677] (13)Permission denied: [client 127.0.0.1:53454] AH00035: access to / denied (filesystem path ‘/Users/sf/Documents/phpstorm’) because search permissions are missing on a component of the path

解决方案,部分路径有执行权限,部分没有执行权限导致报错,看log,看log,不能直接搬网上错误解决方案

上一篇:2020-01-20


下一篇:phpstudy 访问localhost出现forbidden You don't have permission to access / on this server.