apachep配置虚拟主机时,配置好hosts和虚拟站点后,访问报错
来源:7-2 Apache的虚拟主机配置及伪静态操作

陌熙
2017-11-10
错误信息:[Thu Nov 09 10:13:46.618652 2017] [core:error] [pid 6553] (13)Permission denied: [client 192.168.0.3:55855] AH00035: access to /index.html denied (filesystem path '/data/www/index.html') because search permissions are missing on a component of the path
2回答
-
陌熙
提问者
2017-11-11
经过查找资料,是说SELinux没有关闭,经过我的调试,发现关闭了之后就可以访问根目录下面的文件
查看SELinux状态:
1、/usr/sbin/sestatus -v ##如果SELinux status参数为enabled即为开启状态
SELinux status: enabled
2、getenforce ##也可以用这个命令检查
关闭SELinux:
1、临时关闭(不用重启机器):
setenforce 0 ##设置SELinux 成为permissive模式
##setenforce 1 设置SELinux 成为enforcing模式
2、修改配置文件需要重启机器:
修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled
重启机器即可
222017-11-11 -
编程浪子
2017-11-10
能否给出具体访问页面截图,我看看错误编码是多少
012017-11-11
相似问题