Last active
May 17, 2016 14:20
-
-
Save codeasashu/f482a4a68725c54252bceeb892a24f03 to your computer and use it in GitHub Desktop.
How to enable current linux user to add or edit files in recently installed LAMP stack
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 chown -R www-data:www-data /var/www | |
sudo chmod -R g+rwX /var/www |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
taken from http://askubuntu.com/a/51337/57942