Skip to content

Instantly share code, notes, and snippets.

@prasoon2211
Created February 6, 2015 14:01
Show Gist options
  • Save prasoon2211/31aa0f5623cbd6e742f5 to your computer and use it in GitHub Desktop.
Save prasoon2211/31aa0f5623cbd6e742f5 to your computer and use it in GitHub Desktop.
Developing with apache
If your server documents are in /home/$USER/public_html directory you need to run
sudo chown -R www-data:www-data /home/$USER/public_html
to give ownership of the DocumentRoot folder to the user www-data and group www-data.
Then you can add yourself to the group www-data
sudo adduser $USER www-data
Finally, you need to make the DocumentRoot folder writable by owner (www-data user) and to your self (as part of the www-data group):
sudo chmod -R 775 /home/$USER/public_html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment