Apache says DocumentRoot doesn't exist when it does
- by Jakobud
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