Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been setting up a local web server, but I'm having an issue with the following error when I start or restart the Apache httpd service.

Starting httpd: Warning: DocumentRoot [/www/html/project1] does not exist

Now I've checked within the html folder and the project1 folder does exist. I can write to that directory via FTP, and the ownership of the folder is for root. I've also checked SELinux and I can confirm that this has been disabled.

Here is my Virtual Host information:

NameVirtualHost *:80

<VirtualHost *:80>
     DocumentRoot /www/html/project1
     ErrorLog logs/
     CustomLog logs/ common

What's going wrong?

I've checked to see the folder permissions on the folder, and here they are:

drwxr-xr-x  2  apache  root  4096  Nov 20 15:32  project1

Apache is still giving the same errors.

share|improve this question
Is Apache httpd running chrooted? – RedGrittyBrick Nov 21 '12 at 11:52
the ownership of the folder is for root. - make sure the user Apache runs under has permission to read and execute every directory in that path. Apache does not run as root by default (and should not). – Bob Nov 21 '12 at 12:25
I've changed the ownership of the folder to apache, but the error still persists. I've updated my answer to reflect this. – mickburkejnr Nov 21 '12 at 15:47

You must log in to answer this question.

Browse other questions tagged .