barisoner
By:
barisoner

Warning: DocumentRoot * does not exist on Centos 6

November 5, 2013 4.1k views
My virtual hosts lines: ServerAdmin webmaster@dummy-host.example.com DocumentRoot /www/docs/example.com ServerName example.com ErrorLog logs/example.com-error_log CustomLog logs/example.com.com-access_log common And when I apache restart (sudo apachectl -k stop) get this error: Warning: DocumentRoot [/www/docs/example.com] 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/example.com exist?
stat -t /www /www/docs /www/docs/example.com
  • 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/example.com
Have another answer? Share your knowledge.