Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # execute this as sudo su
- # execute this file in your project's wordpress directory
- echo "Then copying our files into the wordpress installation"
- rsync -avP * /var/www/html/
- cp .htaccess /var/www/html/.htaccess
- cp wp-config.php /var/www/html/wp-config.php
- echo "Re-configuring permissions"
- chown -R :www-data /var/www
- chmod -R 775 /var/www
- echo "All your wordpress files have been safely copied to your public root!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement