Last active
August 6, 2017 15:27
-
-
Save ferndot/fdfd772c0afd8541d3788640a8483987 to your computer and use it in GitHub Desktop.
Apache web folder permissions
This file contains 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
FOLDER=$1 | |
sudo chown -R www-data:www-data $FOLDER | |
sudo chmod -R 644 $FOLDER | |
sudo chgrp www-data $FOLDER | |
sudo chmod g+s $FOLDER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment