阅读内容

Linux apache启动失败实例解析

[日期:2007-09-12] 来源:Linux公社  作者:Linuxidc


[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



相关资讯       Linux apache 
本文评论       全部评论
发表评论
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款


点评: 字数
姓名:

L
I
N
U
X


GOOGLE搜索
Google