LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1348|回复: 2

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

[复制链接]
发表于 2005-7-9 15:07: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 root@beiya.com
        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 root@beiya.com
        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:18:26 | 显示全部楼层
找了一些贴子说是SELinux的问题,但是我在安装的时候没有选SELinux呀!请帮我一下,谢谢了。
回复 支持 反对

使用道具 举报

发表于 2005-7-10 09:22:19 | 显示全部楼层
Post by coldcoffee
找了一些贴子说是SELinux的问题,但是我在安装的时候没有选SELinux呀!请帮我一下,谢谢了。


selinuxenabled查一下,如果返回0,则Selinux是enabled.
回复 支持 反对

使用道具 举报

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

本版积分规则

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