How to move your Wordpress blog to a new server

Posted on 11/09/2009 in misc

I'm in the process of doing this now for multiple sites, and I think I have a system down that works well.

On old server

  1. Back up. Zip up your entire blog directory and put it somewhere, just in case.
  2. Export all posts as a double backup.
  3. Export the dB to your local computer
  4. Copy your entire wp-content directory down to your local computer.

On new server

  1. Upload Wordpress to new server. Make sure to follow same directory names and structure as the old server. It will make your life much easier. Trust me on this one.
  2. Create new database.
  3. Delete wp-content directory that comes with Wordpress and replace with yours from existing blog. 8. Edit wp-config-sample.php file with new dB details, and rename to wp-config.php
  4. Import dB from old server into the new server.
  5. Point domain to new server.
  6. Wait. I am doing this within the same ISP, just consolidating some accounts. So the change for me is instantaneous as I don't even need to edit name servers. It may take 20 minutes to 2 days for your domain to point to the new server. In the meantime it should still load the old blog.

That's it.

Click to comment, reply, or complain via email

I like hearing from readers, all three of you! Nobody comments on blogs anymore, and I'd rather not use Facebook or Twitter as a comment system so it's back to the email.