
Own them: $ sudo chown joao: /var/tmp/sess_*Īfter this, Apache (and PHP et al.) will run as you and will gain read/write permission to all of the files you have read/write permission. If you have active sessions, they are going to give permission errors since they are still owned by _www. In /private/etc/apache2/nf, set User to your username from _User _wwwĪnd then restart Apache: $ sudo apachectl restart I generally fix this by setting the Apache user to myself in local environments and in machines where the only user who uses Apache is me. (13)Permission denied: access to / denied (13)Permission denied: access to /favicon.ico denied Quick update - here's what my /var/log/apache2/joao.pt-error_log looks like: (13)Permission denied: access to / denied


/etc/hosts ( view file - added one line).First I saw through the terminal that both Apache and PHP are running (even though I can't view PHP pages) then I updated all permissions according to Apache permissions now I'm just desperate. This time I'm simply getting a 403 Forbidden error every time I hit 127.0.0.1, localhost, or local.
#Macos sierra web server mac os x#
Enabling Apache in Mac OS X Mountaion Lion.
#Macos sierra web server how to#
