Linux apache启动失败解决一例
[root@jsjzhang www]# /etc/rc.d/init.d/httpd restartStopping 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 hoho,selinux的确挺麻烦的…… thank you very much
页:
[1]