Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # execute this as sudo su
  4. # execute this file in your project's wordpress directory
  5.  
  6. echo "Then copying our files into the wordpress installation"
  7. rsync -avP * /var/www/html/
  8. cp .htaccess /var/www/html/.htaccess
  9. cp wp-config.php /var/www/html/wp-config.php
  10.  
  11. echo "Re-configuring permissions"
  12. chown -R :www-data /var/www
  13. chmod -R 775 /var/www
  14.  
  15. echo "All your wordpress files have been safely copied to your public root!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement