Apache says DocumentRoot doesn't exist when it does

Posted by Jakobud on Server Fault See other posts from Server Fault or by Jakobud
Published on 2011-07-25T14:55:01Z Indexed on 2013/11/09 9:59 UTC
Read the original article Hit count: 180

Filed under:
|

I used Webmin to create the following Virtual Host:

<VirtualHost *:80>
        DocumentRoot "/var/www/whatever"
        ServerName whatever.ourdomain
        <Directory "/var/www/whatever">
                allow from all
                Options +Indexes
        </Directory>
</VirtualHost>

And when restarting Apache I get

Starting httpd: Warning: DocumentRoot [/var/www/whatever] does not exist

The thing is, the directory absolutely DOES exist. I'm staring right at it. pwd shows me that's my current directory, etc. It's not that hard to spell it right. I can't find any other errors or warnings in the httpd logs. apache:apache owns the directory and all subdirectories/files. There isn't any symlinks or anything involved here. What am I missing or what else should I look at to determine why this is?

OS is CentOS 6.0

© Server Fault or respective owner

Related posts about apache2

Related posts about centos