欢迎您访问我爱IT技术网,今天小编为你分享的电脑教程是服务器系列之:【Apache启动错误Permission denied: httpd: could not open error log file解决方法】,下面是详细的分享!
Apache启动错误Permission denied: httpd: could not open error log file解决方法
一、系统环境
CentOS 6.3 X64
yum 安装的 apache
版本:httpd-2.2.15-30.el6.centos.x86_64
二、问题描述
新增加虚拟主机站点,启动不了,查看日志,显示:
代码如下:
启动 httpd:(13)Permission denied: httpd: could not open error log file /home/wwwroot/jb51.net/logs/error_log.
Unable to open logs
[失败]
三、问题原因
因为新安装的系统,所以SELinux默认是开启状态,关闭即可
四、解决方法
1、临时关闭(不用重启机器):
代码如下:setenforce 0 ##设置SELinux 成为permissive模式
##setenforce 1 设置SELinux 成为enforcing模式
2、修改配置文件需要重启机器:
修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled
重启机器即可
以上就是关于Apache启动错误Permission denied: httpd: could not open error log file解决方法的服务器维护教程分享,更多电脑教程请移步到>>电脑教程频道。
- 评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
-
