Warning: DocumentRoot * does not exist on Centos 6

November 5, 2013 4.1k views
My virtual hosts lines: ServerAdmin DocumentRoot /www/docs/ ServerName ErrorLog logs/ CustomLog logs/ common And when I apache restart (sudo apachectl -k stop) get this error: Warning: DocumentRoot [/www/docs/] does not exist I've checked some ways: All files and directories permissions is OK, everything 755. I think, maybe this error about SeLinux and disable it. But not working. Still same error. How can I fix this problem?
2 Answers
Well, does /www/docs/ exist?
stat -t /www /www/docs /www/docs/
  • I am having the exact same problem. I ran the command above and the result demonstrates that the directory exists: /var/www/************************.com/httpdocs 4096 8 41ed 48 48 fc00 1049887 2 0 0 1402601818 1402599361 1402601798 4096
The permissions in the Document Root is owners apache:apache /var/ww/eaea chown -R apache:apache and ls -la /www/docs/
Have another answer? Share your knowledge.