Guest User

Untitled

a guest
Dec 11th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. $ sudo adduser <username> www-data && newgrp www-data
  2.  
  3. $ sudo chown www-data:www-data /var/www/html && sudo chmod 775 /var/www/html
  4.  
  5. $ sudo find /var/www/html -type d -exec chmod 775 '{}' ; (Folders: rwx rwx r_x)
  6. $ sudo find /var/www/html -type f -exec chmod 664 '{}' ; (Files: rw_ rw_ r__)
  7.  
  8. $ sudo bash /var/www/html/www-data.sh
  9.  
  10. $ #!/bin/bash
  11. $ chown -R www-data:www-data /var/www/html
  12. $ find /var/www/html -type d -exec chmod 775 '{}' ;
  13. $ find /var/www/html -type f -exec chmod 664 '{}' ;
Add Comment
Please, Sign In to add comment