本文介绍解决SELINUX导致的Apache启动失败,希望对于初学Apache服务器相关的朋友有帮助,更多Apache安装、配置、报错处理等资源请本站内搜索。
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
声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。