Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ sudo adduser <username> www-data && newgrp www-data
- $ sudo chown www-data:www-data /var/www/html && sudo chmod 775 /var/www/html
- $ sudo find /var/www/html -type d -exec chmod 775 '{}' ; (Folders: rwx rwx r_x)
- $ sudo find /var/www/html -type f -exec chmod 664 '{}' ; (Files: rw_ rw_ r__)
- $ sudo bash /var/www/html/www-data.sh
- $ #!/bin/bash
- $ chown -R www-data:www-data /var/www/html
- $ find /var/www/html -type d -exec chmod 775 '{}' ;
- $ find /var/www/html -type f -exec chmod 664 '{}' ;
Add Comment
Please, Sign In to add comment