Created
February 6, 2015 14:01
-
-
Save prasoon2211/31aa0f5623cbd6e742f5 to your computer and use it in GitHub Desktop.
Developing with apache
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
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