This site is developed on Digital Ocean's Wordpress instance. Local development is not supported at this time.
- Backup existing server. (assuming server at 107.170.124.125)
rsync -acv --delete root@107.170.124.125:/var/www/ src/
ssh root@107.170.124.125
1.mysqldump --add-drop-table -u root wordpress | bzip2 -c > jbo.bak.sql.bz2
1.exit
rsync -acv root@107.170.124.125:jbo.bak.sql.bz2 .
- Copy files to new server. (replace 127.x.x.x with real ip)
ssh root@127.x.x.x
1. Copy the password from thedefine('DB_PASSWORD')
line in /var/www/wp-config.php1.
exit`- Paste the copied password into the same line in src/wp-config.php
rsync -acv --delete src/ root@127.x.x.x:/var/www/
(Might have to run twice)rsync -acv jbo.bak.sql.bz2 root@127.x.x.x:.
rsync -acv Search-Replace-DB-master.zip root@127.x.x.x:/var/www/
ssh root@127.x.x.x
1.bzip2 -d jbo.bak.sql.bz2
1.mysql -u root wordpress < jbo.bak.sql
1.cd /var/www
1.apt-get update
1.apt-get install -y unzip
1.unzip Search-Replace-DB-master.zip
1. Open http://127.x.x.x/Search-Replace-DB-master/- Replace 107.170.124.125
- With 127.x.x.x
- DB name wordpress
- user default
- pass default
- host localhost
- all tables
- Click live run
- Click delete me
- If this fails:
rm -rf /var/www/Search-Replace-DB-master*
1. Remove the Apache Password for Admin areas. https://www.digitalocean.com/community/articles/one-click-install-wordpress-on-ubuntu-13-10-with-digitalocean 1.exit
- Open http://127.x.x.x and make sure everything works.