Moving your wordpress site between hosts with no downtime

When we work with clients on developing there new website we use our own development environment to demo concepts and allow content to be proof read before the site goes live. The steps below go through the basics of moving your wordpress site to the new host

  1. Backup the database from the old site and import it to the new site. Ensure you make a note of the database name and the user details..
  2. 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 nameservers 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)
  3. Backup your entire WordPress installation from the old site (this will include all your uploads, themes, plugins)
  4. Upload the fiels that make up your wordpress site to the new site
  5. Change wp-config.php on the new site with new database details
  6. Change the nameservers to point to the new site
  7. Now wait for the DNS changes to happen

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 out of peak hoursĀ  it won’t be that noticeable and you will not lose any comments or other activity on your site.

 

BCM Website

Advertisement

About Martin Meddle

I am an independent freelance IT Consultant who works with individuals, small businesses and large companies. I can provide fast solutions to many of your business problems. This may involve the development of a complete software system, or simply technical support. View all posts by Martin Meddle

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.