- Code: Select all
sudo chown -R <myname>:wheel htdocs
But that just gave me a bunch of "Operation not permitted" errors. Then I ran across this question "Permissions error" here at https://community.apachefriends.org/f/viewtopic.php?f=29&t=76007&p=257717&hilit=can+write+htdocs#p257717 which said:
I had the same issue and here is the solution I found:
First make sure all your services are running, enable the network and mount the volume.
Next, go to your mounted volume in Finder and right-click the folder you want to change permissions of and select "Get Info".
Now, on the right hand bottom side of the Info screen that ops up, you'll see a small lock symbol.
Click that symbol and the login pop up opens, asking you for your admin password.
Now you can change the permissions for the folder in the Sharing & permissions part of the Info screen.
But when I bring up the Info window for the htdocs folder, the "Locked" checkbox is disabled. If I right-click on the mounted "lampp" folder in Finder, it doesn't have a "Get Info" menu item.
How do I make the htdocs directory writable?