Wednesday, May 13, 2009

Warning: DocumentRoot [/home/bugzilla/bugzilla-2.20] does not exist

Default CentOS 5.3 install.
[root@tatersalad bugzilla-2.20]# apachectl graceful
Warning: DocumentRoot [/home/bugzilla/bugzilla-2.20] does not exist
httpd: Could not reliably determine the server's fully qualified domain name, using for ServerName
httpd not running, trying to start

Found solution here:
[root@tatersalad bugzilla-2.20]# vim /etc/selinux/
config restorecond.conf semanage.conf targeted/
[root@tatersalad bugzilla-2.20]# vim /etc/selinux/config

Change SELINUX=enforcing to permissive
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
Reboot. Enjoy.

1 comment:

Patrick said...

This reminds of opening port 80 in your iptables rules after you install Apache. You only have to bang your head against the mysterious wall, oh I don't know, maybe a half dozen times before you just add it to your list of standard checks.

Of course, the alternative is to learn how to use selinux, but that sounds like a pain in the rear.