标签:运行命令 res from osi link 资料 rip chm position
检查http.conf发现没错之后。查找资料后发现时selinux的问题,所以须要关闭这个服务:
1 |
vi /etc/sysconfig/selinux |
2 |
SELINUX=enforcing
改为 SELINUX=disabled |
重新启动后生效
不需重新启动 运行命令:
1 |
setenforce
0 |
CentOS5.3+MySQL 5.0.45 +Apache2.2.3 +PHP5.1.6(都是系统自带的)
在终端输入 (更改站点根文件夹权限为755,非常多centos系统默觉得700)
[root@localhost ~]# chmod -R 755 /var/www/html/
然后重新启动
[root@localhost ~]# /etc/init.d/httpd restart
Options FollowSymLinks
AllowOverride None
Order deny,allow
allow from all
系统是centos。You don‘t have permission to access / on this server.
在google上搜索了一下,大部分的解决方法就是。
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Options ExecCGI Includes
Options Indexes FollowSymLinks
当訪问类unix操作系统上的/usr/local/apache2/htdocs/foo/bar.htm文件时,你收到了Permission Denied的错误。
CentOS出错You don't have permission to access on this server
标签:运行命令 res from osi link 资料 rip chm position
原文地址:http://www.cnblogs.com/gccbuaa/p/6881866.html