打印

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

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

启服务提示如下:
[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>

TOP

找了一些贴子说是SELinux的问题,但是我在安装的时候没有选SELinux呀!具体也没有说是怎么做,知道的告诉一下,谢谢了。

TOP

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

/eee/logs/error_log

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

touch一下吧

TOP

/selinux/config 改成disable试试

TOP

仔细检查站点所在目录的权限。我一般把目录设在/var/www/html/下。日志目录在你机器里存在吗。

TOP