解决mac os You don't have permission to access / on this server.
来源:互联网 发布:淘宝手提包 编辑:程序博客网 时间:2024/06/05 06:45
问题: mac下配置完apache和php环境后,访问localhost,出现403 Forbidden You don’t have permission to access / on this server提示。
网上解决方案:
方案1:
Apache的主配置文件在
/etc/apache2/httpd.conf
找到Directory目录,如果apache版本是2.2的话,应该这么写
<Directory "/Users/apple/Sites/"> Options Indexes MultiViews AllowOverride All # OSX 10.9 / Apache 2.2 Order from deny, allow</Directory>
如果apache版本是2.4的话,应该这么写
<Directory "/Users/apple/Sites/"> Options Indexes MultiViews AllowOverride All # OSX 10.10 / Apache 2.4 Require all granted</Directory>
方案二
<Directory "/Users/yang/Sites/"> Options Indexes MultiViews AllowOverride None Require all denied</Directory>
改成:
<Directory "/Users/yang/Sites/"> Options Indexes MultiViews AllowOverride None Require all granted</Directory>
方案三:
将
<Directory "/Users/yang/Sites/"> Options Indexes MultiViews AllowOverride None Require all granted</Directory>
改成
<Directory "/Users/yang/Sites/">Options Indexes MultiViewsAllowOverride NoneRequire all grantedAllow from all</Directory>
结果都不可行,后面发现其实是文件夹权限问题:
我的路径是:
/Users/shawn/Documents/Sites
其中Document权限是:
改成只读就OK了
阅读全文
0 0
- 解决mac os You don't have permission to access / on this server.
- mac os You don't have permission to access / on this server.
- You don't have permission to access / on this server
- You don't have permission to access /*** on this server
- You don't have permission to access / on this server.
- You don't have permission to access on this server.
- You don't have permission to access / on this server.
- You don't have permission to access ××× on this server.
- You don't have permission to access / on this server
- You don't have permission to access / on this server.
- You don’t have permission to access/on this server
- You don't have permission to access / on this server.
- You don't have permission to access / on this server.
- You don't have permission to access / on this server.
- 在Mac OS X 10.10.2中配置Apache (You don t have permission to access / on this server)
- Mac Os自带Apache修改自定义项目配置报403 Forbidden, You don't have permission to access/on this server解决
- 如何解决You don't have permission to access / on this server
- apache 提示You don't have permission to access /test.php on this server.怎样解决
- jsp-获得网站的绝对路径
- PowerDesigner证书过期的解决方法——替换pdflm16.dll文件
- 并查集(按秩合并)
- CSS笔记(关于viewport)
- 几种 IO编程比较
- 解决mac os You don't have permission to access / on this server.
- CodeForces 466E Information Graph --树形转线性+并查集
- 深入理解Spring MVC 思想
- Educational Codeforces Round 27 ABCD
- ubuntu浏览器的代理服务器的问题
- Liferay访问时,根据不同用户角色跳转到不同登陆页面
- springmvc,reids框架搭建
- Vue父子组件通信
- shiro基本内容详解