For one reason or another, we may want to move a WordPress site from one server to another. I’ve read about many ways to do this, but for some reason, I find they contain too much “paparazzi” for my liking. Therefore, I’m going to describe how to do this in 7 short steps.
Back up your WordPress site. I suggest using the plugin BackUpWordPress.
Download the backup file (usually in .zip format).
Create the database and user on the new server.
Unzip and upload the backed-up WordPress site to your new server.
Edit the wp-config.php file to contain your new database details and re-upload it.
Login to your database using phpMyAdmin and upload the .sql file contained in the backup folder. Change the site url to reflect the new url; To do this, go to General under Settings and change the WordPress Address (URL) and Site Address (URL) fields to reflect the new url.
Visit your new site and make sure everything is in order. Don’t forget to point your domain name to the new server by changing the nameservers. Please ensure you access the newly migrated site using the IP address and ensure everything is okay before changing the nameservers.
Voila! Well done
If you encounter any issues or find a better way to do this, drop me a comment and I’ll check it out ASAP. Feedback, suggestions and/or corrections will be appreciated. Cheers.