咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

如何解决: DocumentRoot does not exist

2017-11-28 12:17:56 1847次

1.linux中安装httpd后重启的时候出现如下错误DocumentRoot does not exist

image.png

2.有两种原因可影响到此种情况:第一种就是linux开启了selinux关闭selinux即可,记得一定要关闭后重启下服务器.
3.如果还不行可以进行文档对比校验例如,一个服务器有一个默认的DocumentRoot at  /var/www/html,但是我们希望它在别的地方/home/wwwroot/,允许用户HHTP访问其家目录.

ls –dZ /var/www/html 命令执行可以看到httpd_sys_content_t

image.png

接着执行下面命令后再重启httpd发现已经没有提示DocumentRoot does not exist

image.png

 


首页
最新活动
个人中心