源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

Apache启动错误Permission denied: httpd: could not open error log file解决方法

  • 时间:2020-03-03 18:05 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Apache启动错误Permission denied: httpd: could not open error log file解决方法
[b]一、系统环境[/b] CentOS 6.3 X64 yum 安装的 apache 版本:httpd-2.2.15-30.el6.centos.x86_64 [b]二、问题描述[/b] 新增加虚拟主机站点,启动不了,查看日志,显示:
[u]复制代码[/u] 代码如下:
启动 httpd:(13)Permission denied: httpd: could not open error log file /home/wwwroot/1sucai.cn/logs/error_log. Unable to open logs [失败]
[b]三、问题原因[/b] 因为新安装的系统,所以SELinux默认是开启状态,关闭即可 [b]四、解决方法[/b] 1、临时关闭(不用重启机器):
[u]复制代码[/u] 代码如下:
setenforce 0                  ##设置SELinux 成为permissive模式 ##setenforce 1 设置SELinux 成为enforcing模式
2、修改配置文件需要重启机器: 修改/etc/selinux/config 文件 将SELINUX=enforcing改为SELINUX=disabled 重启机器即可
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部