在Mac OS X 10.10.2中配置Apache (You don t have permission to access / on this server)
2015-04-24 12:21
501 查看
此问题解决办法仅供参考,希望对你有帮助。
在Mac OS X 10.10.2中配置Apache时,出现了这个问题You don t have permission to access / on this server,此问题网上已给出了几种解决办法,但试了好长时间,都没成功,主要是修改apache的配置文件httpd.conf和html文件的访问权限(注意不同版本系统http.conf文件稍有不同,但是能找到类似作用的位置,最终修改了如下位置,即仿照下面三个办法的第二个办法)
把
Options FollowSymLinks Multiviews
修改为
Options Indexes FollowSymLinks
其余不用修改,就成功了。
具体原因我不知道为什么,我只是为了测试程序才搭建这个环境,所以暂时不想深究。网上总结的原因有如下:(以下从别的网页复制)
(1)
>
(2)我改了之后还是会出现上面的错误,于是看一下自己设定的工作目录权限。
改成下面这行设置后,显示正常。
(3)当访问类unix操作系统上的/usr/local/apache2/htdocs/foo/bar.htm文件时,你收到了Permission Denied的错误。
首先,查看文件的访问权限:
如果须要的话,就修复它们:
对文件夹以及每个父文件夹做相同的操作
在Mac OS X 10.10.2中配置Apache时,出现了这个问题You don t have permission to access / on this server,此问题网上已给出了几种解决办法,但试了好长时间,都没成功,主要是修改apache的配置文件httpd.conf和html文件的访问权限(注意不同版本系统http.conf文件稍有不同,但是能找到类似作用的位置,最终修改了如下位置,即仿照下面三个办法的第二个办法)
把
Options FollowSymLinks Multiviews
修改为
Options Indexes FollowSymLinks
其余不用修改,就成功了。
具体原因我不知道为什么,我只是为了测试程序才搭建这个环境,所以暂时不想深究。网上总结的原因有如下:(以下从别的网页复制)
(1)
代码如下 | 复制代码 |
<Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory> 这里改成 <Directory /> Options Indexes FollowSymLinks AllowOverride None </Directory |
(2)我改了之后还是会出现上面的错误,于是看一下自己设定的工作目录权限。
代码如下 | 复制代码 |
Options ExecCGI Includes |
代码如下 | 复制代码 |
Options Indexes FollowSymLinks |
首先,查看文件的访问权限:
代码如下 | 复制代码 |
$ cd /usr/local/apache2/htdocs/foo $ ls -l bar.htm |
代码如下 | 复制代码 |
$ chmod 644 bar.html |
代码如下 | 复制代码 |
(/usr/local/apache2/htdocs/foo,/usr/local/apache2/htdocs,/usr/local/apache2,/usr/local/,/usr): $ ls -la $ chmod +x $ cd .. $ #repeat up to the root |
相关文章推荐
- mac os You don't have permission to access / on this server.
- Apache配置问题Forbidden You don't have permission to access / on this server
- apache默认配置 访问目录403错误 出现You don't have permission to access / on this server
- 解决mac os 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解决
- ubuntu14 apach2.conf 配置 alias 虚拟目录站点 You don't have permission to access /logs/ on this server
- apache You don't have permission to access /test.php on this server解决方法
- apache问题you don't have permission to access / on this server如何解决
- WAMP权限设置-Apache:You don't have permission to access / on this server. 96 作者 Wing_Li 关注 2016.06.12 1
- apache问题you don't have permission to access / on this server如何解决
- php多站点配置以及Forbidden You don't have permission to access / on this server问题解决
- Linux Centos7 Apache 访问 You don't have permission to access / on this server.
- apache You don't have permission to access /test.php on this server解决方法
- apache 403异常 You don't have permission to access on this server
- Apache刚装好重启出现You don't have permission to access / on this server. 错误的解决办法
- WampServer设置apache伪静态出现404 not found及You don't have permission to access / on this server解决方法分析[原创]_服务器其它_脚本之家
- apache出现You don’t have permission to access / on this server问题的解决
- CentOS7.0下安装Apache2.4.20版本,安装完成之后,报 You don't have permission to access / on this server.
- Apache提示You don't have permission to access / on this server问题解决
- apache 提示You don't have permission to access /test.php on this server.