apache提示DocumentRoot must be a directory
2013-12-03 13:41
435 查看
apache提示DocumentRoot must be a directory的问题 将DocumentRoot改为/opt/www后提示:Starting httpd: Syntax error on line 293 of /etc/httpd/conf/httpd.conf:DocumentRoot must be a directory
百度一圈都说是修改目标文件夹的context值,chcon -R -h -t httpd_sys_content_t /opt/www
实际上还有另外一个限制,如下:
原来是SELinux不允许使用home目录作为web目录 [root@sl ~]# getsebool -a |grep httpd_enable_homedirshttpd_enable_homedirs --> off
修改SELinux设定[root@sl ~]# setsebool httpd_enable_homedirs on
百度一圈都说是修改目标文件夹的context值,chcon -R -h -t httpd_sys_content_t /opt/www
实际上还有另外一个限制,如下:
原来是SELinux不允许使用home目录作为web目录 [root@sl ~]# getsebool -a |grep httpd_enable_homedirshttpd_enable_homedirs --> off
修改SELinux设定[root@sl ~]# setsebool httpd_enable_homedirs on
相关文章推荐
- apache提示DocumentRoot must be a directory
- apache启动提示Document root must be a directory
- Apache - "DocumentRoot must be a directory"的解决方案
- WAMP的apache无法启动DocumentRoot must be a directory
- Windows更改Apache网站目录出错:Document root must be a directory
- Linux更改Apache网站目录出错:Document root must be a directory解决
- Linux更改Apache网站目录出错:Document root must be a directory
- linux CentOs 权限导致的Apache - "DocumentRoot must be a directory"的解决方案
- Apache安装报错:ServerRoot must be a valid directory
- Document root must be a directory解决办法
- 设置httpd.conf的DocumentRoot值为其他目录时出现“Document root must be a directory”的问题
- 设置httpd.conf的DocumentRoot值为其他目录时出现“Document root must be a directory”的问题
- Document root must be a directory
- apache服务器: ServerRoot must be a valid directory,Cannot load modules/mod_actions.so into server:
- apache启动出错:ServerRoot must be a valid directory
- linux CentOs 权限导致的Apache - "DocumentRoot must be a directory"的解决方案
- the markup in the document preceding the root element must be well-formed
- org.xml.sax.SAXParseException: The markup in the document following the root element must be well-fo
- spring配置文件报错:the markup in the document preceding the root element must be well-formed
- 编写xml文件时,The markup in the document preceding the root element must be well-formed.等bug