Created
May 3, 2015 22:28
-
-
Save nehalvpatel/766406821e8f393c7743 to your computer and use it in GitHub Desktop.
Proper permissions for /var/www
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo adduser <username> www-data | |
| sudo chgrp -R www-data /var/www | |
| sudo chmod -R g+rw /var/www | |
| find /var/www -type d -print0 | sudo xargs -0 chmod g+s |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: http://askubuntu.com/questions/19898/whats-the-simplest-way-to-edit-and-add-files-to-var-www#comment140920_51337