在rhel4下配置apache启动不了?!!
启服务提示如下:# service httpd start
Starting httpd: audit(1120805632.890:0): avc:denied{ append } forpid=3100 exe=/usr/sbin/httpd
name=error_log dev=sda3 ino=56451 scontext=root:system_r:httpd_t tcontext=root:object_r:root_t tclass=file
(13)Permission denied: httpd: could not open error log file /eee/logs/error_log.
Unable to open logs
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> 找了一些贴子说是SELinux的问题,但是我在安装的时候没有选SELinux呀!具体也没有说是怎么做,知道的告诉一下,谢谢了。
应该是你没有创建那个log文件
/eee/logs/error_log应该是/var/logs/error_log???
touch一下吧 /selinux/config 改成disable试试 仔细检查站点所在目录的权限。我一般把目录设在/var/www/html/下。日志目录在你机器里存在吗。
页:
[1]