Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SITE_ROOT="/var/www/html/"
- sudo chown -R $USER $SITE_ROOT
- sudo chgrp -R www-data $SITE_ROOT
- sudo find . -type d -exec chmod 0755 {} \;
- sudo find . -type f -exec chmod 0644 {} \;
- sudo chmod -R g+s $SITE_ROOT
- # If you need folders to which site needs to write, simply set them like this:
- sudo chgrp -R www-data $FOLDER
- sudo chmod -R ug+rwx $FOLDER
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement