How To Move A WordPress Blog To Another Web Host

One of the things about web hosting these days is that you have a TON of options. As a consumer, you can shop around.

Not only that, if you aren’t happy with your current hosting, there isn’t any reason you have to stick around. Moving your site isn’t really as big a deal as you might think.

Why I Changed Hosts After Over 10 Years

I recently switched to a different web host. For me, this was a pretty big deal.

I had been with Pair Networks for over a decade, paying for a pretty expensive dedicated server. Well, as technology improved and pricing changed, it got to a point where a VPS was actually a viable option.

In Case You Didn’t Know:
A dedicated server means you have the entire computer dedicated just to you and your hosting. As you might guess, it can be pretty expensive. A VPS stands for “virtual private server”. Essentially, a VPS gives you all the abilities of a dedicated server (meaning, you can do whatever you want), however you are sharing a server with a few other people. A VPS is basically a virtual machine, sort of like running Windows on a Mac.

Pair Networks is a great host, but they’re expensive. They use their own custom admin panel (rather than cPanel). Plus, they charge extra for add-on domains and other things while most other hosts just give all that to you for free.

So, I shopped around and arrived on ServInt. Their support is awesome and their VPS’s are strong. I now have more flexibility and I’m actually saving almost $300/month. Which doesn’t suck one bit.

Making The Move

A lot of hosts have services to help you move over, but I tend to prefer the do-it-yourself route. And, it isn’t hard to do at all.

You’ve got two components to your WordPress blog:

  1. The files on your server.
  2. The database (which is where all the content sits).

To move your blog, you have to move both over to the new host.

There are two ways to do this:

  1. Use a backup and restore function.
  2. Do it manually.

Moving Your Blog Using Backup & Restore Software

There are a number of different backup options for WordPress, but the one I recommend is BackupBuddy.

BackupBuddy has a built-in “Migrate or Restore” function. To use it, you do the following:

  1. Go to BackupBuddy -> Backup in your WordPress admin panel. Run a current full backup of your blog.
  2. Download the full backup to your local computer.
  3. Go to BackupBuddy -> Migrate, Restore in your WordPress admin panel.
  4. Click the link to download the importbuddy.php script.
  5. Go to your NEW server and upload both the full backup file and the importbuddy script.
  6. In your web browser, visit the importbuddy script you just uploaded.
  7. Follow the on-screen instructions. It will walk you through un-zipping the files, connecting to your new database, and importing your database backup.

Here is a video from the folks who made BackupBuddy showing you how this works:

At this point, your blog will be moved.

But…

There’s always the issue of your domain. Obviously, your blog’s domain will not magically switch over just because you do this procedure. In fact, you might get confused how to access/verify your blog on the new host before you’ve actually moved your domain over. I’ll go over that in a minute, but first let’s talk about how to move your blog the old-fashioned way.

Moving Your Blog Manually

I personally prefer to do it manually because I feel I have more control over it. However, it necessitates that you be comfortable with a little more geeky stuff. Here we go…

  1. Connect to your old host with your FTP program. Navigate to the folder which contains your blog files. It will either be public_html, or a sub-directory off of public_html.
  2. Select all files from the server and begin downloading them to your local computer.
  3. Ensure your blog domain is set up on your new host. If you’re using cPanel, then either your main domain will be the main domain of your hosting account, OR you will need to create an “Addon Domain” for your blog. This is NOT the same as actually re-routing your domain to the new host. You are simply setting up your hosting account to accommodate the domain.
  4. Once all of your site’s files are located on your personal computer, use your FTP program to connect to your NEW server. Navigate to the public_html folder. If your blog’s domain will be the main domain of your hosting account, then upload all of your files to public_html. If you’re using an add-on domain, then upload all of your files into the sub-folder off of public_html.

At this point, your files are on the new server. Now, we have to do the database. Easiest way to do this is using PHPMyAdmin.

  1. On your OLD host, open up PHPMyAdmin and connect to your blog’s database. PHPMyAdmin is accessible from within cPanel.
  2. Click on the Export tab.
  3. The “Quick” export option option and SQL format is fine. So, just hit the “Go” button.
  4. You will be prompted to download an SQL file to your local computer. This is a backup of your database.
  5. Now, ensure that you have a database created for your blog on the NEW server. If not, adding a new MySQL database via cPanel is pretty straight-forward. The only thing to keep in mind is that you need to create the database, THEN create the user to connect to that database, THEN assign that user to your new database. You never want to use your root login to connect to your databases.Screenshot_3_4_13_12_09_PM
  6. Connect to the database via PHPMyAdmin.
  7. Go to the import screen. Select your SQL file from your local computer, leave all options default, and run.
In PHPMyAdmin, click on Export.

In PHPMyAdmin, click on Export.

At this point, your database is now moved. All that’s left to do is ensure WordPress will hook up to the new database. To do that, you will want to edit the wp-config.php file on the NEW server, edit the database access details (username, password, name of database), then re-save the file.

Your blog should then be ready for prime time on the new server.

What About The Domain?

Good observation, grass hopper. Your domain is still pointed to the old server. You have to redirect it.

A domain is pointed to a server via what is called a “nameserver”. If you change the nameservers for your domain, then the domain will start pointing to a different place.

Your web host will likely provide you with two nameservers. If not, the support people for your host will help you get set up.

Armed with two name servers for your new host, you need to log into the account wherever your domain is held. I use NameCheap, but you may use GoDaddy or another service. Regardless of which, they will have an option to change the DNS servers (domain name servers) for the domain. Just enter the new name servers and save.

Once you’ve made the change, you will need to wait for the changes to spread across the Internet. Sometimes this can happen within minutes… sometimes it can take up to a full day.

 

Access The VaultEvery course, every action plan.

Here’s what the VIP members are currently accessing:

  • 10 Full Training Courses on niche research, business models for bloggers, time management, list building, and more.
  • The full 16-module flagship blogger training course, Blog Masters Club. Originally sold for $497.
  • Bi-weekly office hours calls, the private community... all to get your questions answered, and not be alone.
Unlock The Vault

Got a Question or Comment?

  1. I was just talking to a friend of mine about this very thing. I’ll forward this along.

  2. Great post Dave. I am in the works right now to move my host as well.

    What I find pretty funny is a client will spend a $800 a month on my video SEO and conversion consultation but not pony up a few extra bucks a month for industrial-strength hosting. As we all know, site speed is one of the many algo parameters Goog uses in their organic rank formula.

    Love your stuff. Keep it up so I can “borrow” more of your ideas.

    Be well Dave.

    Peter

  3. Thanks for sharing Dave this is an excellent guide hopefully I won’t have to use this anytime soon.

    What are the signs that it’s time to change a host or upgrade as you did?

    • In my case, the telling sign was paying $400/month for web hosting. :-)

      But, for most people, it is really about whether your site is slowing to a crawl, or the hosting is complaining about too many resources being used. In those cases, it is time to upgrade.

  4. Thanks for this – I will have to move my blog in few weeks and this will probably save my day :D

  5. Are you sure about Servint? Pat Flynn just experienced a terrible experience and moved away !!

    http://www.smartpassiveincome.com/server-problems/

    • I know. But, I was in touch with Pat via text message and he tells me that, even though he moved away, he didn’t really need to. He was just trying everything to fix the problem, including switching hosts. And the ServInt techs couldn’t figure it out, apparently. But, their hosting and support is still solid, and he’ll tell you the same.

  6. Nice and concise, Dave. Having used both methods now over the years, I really enjoy Backup Buddy for the ease and the speed. One thing I run into more often than I’d like, is that some hosting co.s do not upgrade the software needed to run WordPress CMS. When I start a new design job with a client, I always contact their host first, set up a dev site on a subdomain to make sure WP is going to fly.

Speak Your Mind

*

Like Our Free Content?

CLICK HERE for the best that the Academy has to offer...