红联Linux门户
Linux帮助

Linux apache启动失败解决一例

发布时间:2007-09-12 00:33:25来源:红联作者:vsdotegnu
[root@jsjzhang www]# /etc/rc.d/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 265 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory

其实这个目录没有什么问题,只是解压的一个tar包,最后确定是selinux

解决方法:
vi /etc/selinux/config

使SELINUX=disable
或/etc/selinux/targeted/booleans
httpd_enable_homedirs=1
文章评论

共有 0 条评论