
It looks like Apache is somehow denying me access to my DocumentRoot (which by the way is ~/Sites).


/etc/apache2/nf ( view file - updated the DocumentRoot).I think its got something to do with apache user not having permission to access my DocumentRoot, which is not entirely obvious from the errorlog. I had to go and enable Web Sharing from preferences to make it work, System Preferences->Sharing->Web Sharing and restart Apache. User/Group: The name (or number) of the user/group to run httpd as. If you configure Apache to use PHP, you can see that Apache runs from the whoami. I'm thinking that maybe the method in which apache logs IP addresses may be dependent on them being supplied by the remote computer. Also, to check and/or change, you can go to your nf file and look for the following part: If you wish httpd to run as a different user or group, you must run httpd as root initially and it will switch. Once you have Apache working on the system, if you wish to use PHP with Apache, see PHP for Apache on OS X El Capitan. Either way, all my clients go through the router.
#MAC OS X APACHE ERROR LOG MAC OS X#
#MAC OS X APACHE ERROR LOG HOW TO#
How to turn Mac OS X Lion into a web server? Categories Apache, Technology, Web Server Tags Address, Apache, Apache 2.4, Apache2, errorlogformat, IP, IP address, logformat, proxy, X-Forwarded-For Leave a Reply Cancel reply Your email address will not be published.

I usually update /etc/hosts just to run my local websites with a pretty : local/example. One of the problem that I found in logs is: Mon Jan 25 09:56:08 2010 error A subtree cannot specify a different DAV provider than its parent. I'm trying to set a local environment on my new MacBook Air 13": built-in Apache with my own DocumentRoot, PHP, and MySQL.
