I\'m new to the mac world and have just been setting up my webserver. I used the following guide: https://alan.ivey.dev/posts/2011/os-x-10.7-lion-development-native-mamp-wit
I'm running Apache on OSX and this fixed it for me:
sudo chown -R _www:_www
sudo chmod -R 775
Update #1:
Syntax: sudo chown
. The Apache user on OSX is _www
.
To keep ownership but give Apache r-w-x permissions:
sudo chown -R :_www
sudo chmod -R 775
Update #2:
I like this method best. Set Apache to run as you.
In terminal type id
to get uid=123(Myname)
.
Open /etc/apache2/httpd.conf and edit it to use your username.
User Myname
Group staff
Back to terminal: sudo apachectl restart