Warning: DocumentRoot * does not exist on Centos 6

Posted November 5, 2013 7.3k 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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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/