How to move WordPress site to another server with zero downtime
Here is step-by-step tutorial on how to move your WordPress site with zero downtime.
- Backup the database from the old site and import it to the new site. Pay attention to database names.
- Change your wp-config.php in the old site to point to the database on the new site. Your old site will now run using database based on the new site and once you change the names ervers new site will have the up to date database. (You may want to check with your new hosting if they allow outside database access first. If not, you can skip this step and transfer the database at the end, when the nameserver change propagated)
- Backup your entire WordPress installation from the old site (this will include all your uploads, themes, plugins)
- Unpack your WordPress installation to the new site
- Change wp-config.php on the new site with new database details
- Change the nameservers to point to the new site
- That's all now you only need to wait :)
Since nameserver propagation can take up to one day, step 2 allows you to have up to date database at the moment it happens. Downside to this is slower site response in the meantime because site still runs from the old server and the database is on the new. But if you do this over the night or periods of low traffic it won't be that noticeable and you will not lose any comments or other activity on your site.
About this entry
You’re currently reading “How to move WordPress site to another server with zero downtime,” an entry on Vladimir Prelovac site, published: Sunday, September 28th, 2008
-
Check more articles like this:
- Fastest way to install WordPress is through CPanel
- Ultimate solution to weird UTF character encoding problem
- 7 tips to insure your blog against web tsunami
-
Write a comment.
-
Get my newsletter, RSS feed or twitter.

Hi! My name is Vladimir Prelovac. I am a computer engineer by profession and an adventurer by state of mind.
27 comments, newest first
Jump to main menu | Jump to comment form | Toggle comments