Make a directory writable by Apache on Mac OS X

Just a quick reference on how to make a directory writable by OSX integrated Apache web server.

1. Set the ownership of your desired directory/file to the _www user:

sudo chown -R _www:staff path/to/folder/

2. Set the permissions so that the _www can write in the directory/file without giving permissions to everyone else:

sudo chmod -R 755 path/to/folder

Happy coding 🙂

Related Post

How to Reset MAC OS X DOCK to DEFAULT SETTINGS First launch the Terminal app, located in the Utilities folder under Applications, or just hit Cmd + Space and type "Terminal". Type (copy & past...
Copying Cyrillic URLs in Google Chrome and Firefox Using Google Chrome, I encountered strange bug affecting the copying and pasting of cyrillic urls. When pasting, the non ASCII characters in the Ur...
Hyper-V: How to change screen resolution in CentOS... I'm thinking of doing a switch to GNU/Linux as my desktop OS yet again! (My last GNU/Linux desktop experience lasted for 5 years, then back to Windows...
Enabel super user log in on Ubuntu 14.04 LTS In order to maintain higher security level and keep the user from accidental breakage of the system the root user log in is disabled by default. To en...
Installing JD-GUI on OpenSUSE JD-GUI is a standalone graphical utility that displays Java source codes of “.class” files. You can browse the reconstructed source code with the JD-G...
Install Oracle JDK on OpenSUSE Due to licensing issues, OpenSUSE comes with OpenJDK. I personally prefer using Oracle's JDK. It's worth mentioning that OpenJDK will not work in some...
If you liked this article and think it is useful use the buttons below.

Leave a Reply

Your email address will not be published. Required fields are marked *

*