Macos – Apache Error on Mac OS X Lion

Apache2macos

I keep getting this error on my apache install. I have php module enabled on it. Rest is the standard installation

[Thu Dec 08 06:46:42 2011] [error] [client 127.0.0.1] File does not exist: /usr/htdocs
[Thu Dec 08 06:46:42 2011] [error] [client 127.0.0.1] File does not exist: /usr/htdocs

Any ideas why does this happen and how to fix it.

Thanks

Best Answer

Some problem with Mac OS X Web preferences. I had to go and enable Web Sharing from preferences to make it work,

System Preferences->Sharing->Web Sharing and restart Apache

I think its got something to do with apache user not having permission to access my DocumentRoot, which is not entirely obvious from the error_log.