Warning: DocumentRoot * does not exist on Centos 6

My virtual hosts lines:

<VirtualHost *:80> ServerAdmin DocumentRoot /www/docs/ ServerName ErrorLog logs/ CustomLog logs/ common </VirtualHost> 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?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

The permissions in the Document Root is owners apache:apache /var/ww/eaea chown -R apache:apache and ls -la /www/docs/

Well, does /www/docs/ exist? <br><pre>stat -t /www /www/docs /www/docs/</pre>