1.11.10

Apache: DocumentRoot IS a directory!


[root@UNNAMEDSYSTEM html]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 282 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory
  [FAILED] 

So you have diligently moved the location of your WebRoot to a new volume.  You have gone through your httpd.conf file with a fine toothed comb for any careless errors.  What the hell is going on here.

Fret not my interested reader.  You are likely being blocked by SELinux.  So you have 2 options.  Seems that SELinux is not happy a change of volumes for the WebRoot.

Option 1,
Tell SELinux this is ok
chcon -R -h -t httpd_sys_content_t /path/to/directory
Option 2,
Disable SELinux.  In CentOS/RedHat run system-config-security.  I would suggest setting it to permissive.  At least that still logs messages.

Good luck!