How to Migrate a WordPress Website?

In many cases, moving to a new host isn’t such a big deal, because your new provider often takes care of the transfer. And if your website isn’t too big or overly complicated, the whole transfer rarely takes more than an hour or two. 

Still, there are times when switching to a new provider means you have to migrate the site data manually. If you are ever in such a place, this guide might be the perfect tool for you. We will show you how to properly transfer a WordPress website with minimum effort, regardless if both providers utilize cPanel or not.

Let’s get to it then.

Source and Destination server use cPanel

This is the easier route.

If you are using a shared WordPress hosting plan, you can’t really have root server access, so the best way to migrate your website is by generating a full backup of your account.  

You can do that via your cPanel -> Backups option. 

Once you create an archive of your website from there, simply upload it to your destination server and open a ticket with the technical support team of the new host. Just ask them to restore the backup, and you’ll have a 100% mirror copy of your previous account. This includes files, emails, databases, comments, settings, the works. 

How to Migrate a WordPress Website?, Source and Destination server use cPanel

Still, you might not have the luxury of facing a direct cPanel-to-cPanel transfer.

Source or Destination server does not use cPanel

In this case, you are up against a manual WordPress migration. Don’t worry, as you don’t need to be a programmer or coding genius to do that. In fact, following the steps below will allow you to properly migrate your WP website even if you are a complete newbie.

  1. Download all WordPress files to your computer. You can do that via any FTP client, like Filezilla
  2. Generate a copy of the WordPress database from the phpMyAdmin option in your control panel. Save that one as well.
  3. Log in to your new host and upload the files to the document root directory of your domain on the new server.
  4. Create a new database on the destination server.
  5. Import the database using phpMyAdmin. If you are using cPanel, you can find the option under MySQL Databases.
  6. While there, create a MySQL username and allow access to the WordPress database.
  7. Use the File Manager to open the wp-config.php file and make sure the name of the database and MySQL username match the ones you see in cPanel -> MySQL databases. If the names are different, your website won’t be able to communicate with your database and deliver the requested content. 

We are now at the finish line…just a couple more things.

  • Verify everything is working

After you complete the steps above, it’s time for a test to verify your website is loading fine on the new server. You can do so by editing the hosts file on your computer to make your domain resolve to the new server but just for you. This means that regular visitors will still load the content from the old server while you check if everything is running fast and error-free on the new machine. Don’t forget to set it back to default after your testing is completed to avoid confusion in the future.

Sounds a bit too complicated?

Here is a wonderful guide to help you edit the hosts file. 

  • Changing the nameservers

After you migrate your WordPress website and verify it is loading normally on the destination server, it is time to change the nameservers of your domain. This will point the name to your new file destination so it can open the right web content. 

You can do that from the control panel of your domain registrar. When you change the nameservers to the ones provided by your new web hosting provider, allow it 24 hours for DNS propagation

Make sure not to cancel the old account immediately because you may lose visitors that are still accessing your website from the old server due to DNS caching. Keep it active for at least 72 hours as the nameserver propagation might take a bit more than one day. 

Final Takes

As you can see, migrating a WordPress website is an easy task, especially if you have the right hosting provider behind your back. Check out Scala Hosting’s managed WordPress plans and benefit from lightning-fast servers and uninterrupted uptime at highly affordable rates. For best performance and security, you can also consider our versatile Managed Cloud VPS deals.

How to Migrate a WordPress Website?
Take your WordPress site to new Heights - Join the ScalaHosting Family
Free, Effortless & No-Downtime Migration
Anytime Unconditional Money-back Guarantee
Constant, fast and competent WordPress Support

Was this article helpful?

What’s your goal today?

1. Find the right WordPress hosting solution

If you’re looking for industry-leading speed, ease of use and reliability Try ScalaHosting with an unconditional money-back guarantee.

2. Make your website lightning-fast

We guarantee to make your WordPress site load in less than 2 seconds on a managed VPS with ScalaHosting or give your money back. Fill out the form, and we’ll be in touch.

Make your website lighting fast—or your money back
Slow websites lose visitors and sales. See how you can surf tsunami sized traffic spikes—or any traffic—with ease with ScalaHosting. Fill out the form, and we’ll be in touch!
Please enter a valid name
Please enter a valid website
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

3. Streamline your clients’ hosting experience

If you’re a web studio or development agency hosting more than 30 websites, schedule a call with Vlad, our co-founder and CTO, and see how we can deliver unmatched value to both your business and your clients.

Photo

Need a custom cluster or professional advice?

Book a meeting and get a free 30-minute consultation with Vlad, co-founder & CTO of Scala Hosting, who will help you select, design and build the right solution - from a single data center cluster to a multi-region & multi-datacenter high availability cluster with hundreds of servers.

Book a free consultation

4. Learn how to grow your website in 2024

An all-star team of SEO and web influencers are sharing their secret knowledge for the first time in years. Learn about the future of SEO, Web Design best practices and the secrets to getting the foundation for your website to thrive. Watch the exclusive webinar.

An Exclusive Insiders Look Behind The SEO and Web Development Curtain