QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2911|回复: 4

在rhel4下配置apache启动不了?!!

[复制链接]
发表于 2005-7-8 15:09:02 | 显示全部楼层 |阅读模式
启服务提示如下:
[root@rhel4 conf]# service httpd start
Starting httpd: audit(1120805632.890:0): avc:  denied  { append } for  pid=3100 exe=/usr/sbin/httpd
name=error_log dev=sda3 ino=56451 scontext=root:system_r:httpd_t tcontext=rootbject_r:root_t tclass=file
(13)Permission denied: httpd: could not open error log file /eee/logs/error_log.
Unable to open logs                                                        [FAILED]

                                       
httpd.con配置如下:
NameVirtualHost 192.168.0.200
<VirtualHost 192.168.0.200>
        ServerAdmin [email protected]
        ServerName www.beiya.com
        ServerRoot /www
        ErrorLog logs/www.beriya.com-error_log
        CustomLog logs/www.beiya.com-access_log combined
</VirtualHost>

<VirtualHost 192.168.0.200>
        ServerAdmin [email protected]
        ServerName eee.beiya.com
        ServerRoot /eee
        ErrorLog logs/eee.beiya.com-error_log
        CustomLog logs/eee.beiya.com-access_log combined
</VirtualHost>
 楼主| 发表于 2005-7-9 23:20:57 | 显示全部楼层
找了一些贴子说是SELinux的问题,但是我在安装的时候没有选SELinux呀!具体也没有说是怎么做,知道的告诉一下,谢谢了。
回复

使用道具 举报

发表于 2005-8-8 14:20:15 | 显示全部楼层

应该是你没有创建那个log文件

/eee/logs/error_log

应该是/var/logs/error_log???

touch一下吧
回复

使用道具 举报

发表于 2005-9-20 15:03:16 | 显示全部楼层
/selinux/config 改成disable试试
回复

使用道具 举报

发表于 2005-10-11 22:25:25 | 显示全部楼层
仔细检查站点所在目录的权限。我一般把目录设在/var/www/html/下。日志目录在你机器里存在吗。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-20 16:45 , Processed in 0.072366 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表