玛丽莲 发表于 2010-4-9 13:43:58

Linux apache启动失败解决一例

# /etc/rc.d/init.d/httpd restart
Stopping httpd:                                          
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

jameshpf 发表于 2010-8-11 16:55:26

加油

jameshpf 发表于 2010-8-11 16:55:37

顶你

jameshpf 发表于 2010-8-11 16:56:04

jimsun 发表于 2015-10-25 20:13:17

谢谢分享!顶起!
页: [1]
查看完整版本: Linux apache启动失败解决一例