How to move WordPress site to new hosting? The Step By Step Guide

Author: | Posted in Hosting No comments
5 (100%) 1 vote
move WordPress site to new hosting

image: pexels

Are you waiting to move WordPress site to new hosting?

The biggest fear many people face in exchanging web hosting is the possibility of info loss and potential downtime. That is why most people go Fiverr or hire an expert to shift their sites. But to move your WordPress site to a new hosting doesn’t require high-level coding sense.

Just spend a little time in this article and trust me; in the end, you will become an expert on migrating WP site to the new host! If you invest a little effort in setting up your site then move WordPress site to new hosting nothing to worry about.

So let’s start!

 

Step 1: Pick Your New WordPress Host

So at first, pick your new hosting provider. In such case, we recommend “Bluehost” or “WP Engine”. Both are also authoritatively suggested by WordPress.org. But after purchasing, don’t install WordPress in new hosting. Leave it blank for now.

 

Learn How To Choose The Best WordPress Hosting

Step 2: Backup & Download your site’s Database

Backup your important files before any shipment. This is a good practice. There are many plugins available such as “FileZilla’’ to back up your files. Now you can export your database and move without any risk of info loss. Go to ‘cPanel’ and click on the phpMyAdmin button. Now select your WP installation files from the left sidebar of the tab and press go. The file will save to your computer within a few seconds.

Let’s move to step 3.

 

Step 3: Create Database to the new hosting

We are one-step behind moving to new hosting. But before, we need to setup WP database for new hosting. Just log in to new hosting and link with cPanel. Expert suggests here using MySQL. Just follow these steps:

  1. Go to, MySQL Database and develop a database with the name for your site.
  2. Create a MySQL account &
  3. Link this account to the new database.

 

Step 4: Alter wp-config.php file

Open the database you downloaded in “step 2”. There you will get a file named “wp-config.php”. This file controls the connection amongst WordPress and your site’s database. Now reveal the file and alter the following things:

 

  1. Alter database name: Locate this line:

Define (‘DB_NAME’, ‘db_name’); Put your new database name in the portion ‘db_name’.

 

  1. Alter database username: Locate this line:

Define (‘DB_NAME’, ‘db_user’); put the new database username you created to match your new web host.

 

  1. Alter database password: Finally the last line:

Define (‘DB_NAME’, ‘db_pass’); Add new password for your new hosting account.

 

Now save & close the file.

 

Step 5: Import database to the new hosting

Now you get a new database, so go cPanel and choose the new database from the left sidebar. When it opens, import the SQL database file you saved in your pc. Now, wait for a while. This might take a few minutes.

 

Step 6: Move WordPress site to the new hosting

You already have setup database and wp-config.php file. Now move to new hosting via FTP application & locate the folder that saves your website file. If essential import files into the public_html directory. It may take some time. Try not to erase these documents from your PC once the transfer completes.

 

Articles For You:

 

Step 7: The final chapter

We have reached to the final chapter of our article. Before move WordPress site to new hosting, you need to check the domain DNS settings. It will be linked with your old host by default and you have to correct it with a new IP address. It takes up to 48 hours to update the DNS settings change. In the meantime, do not do any type of change.  After this initial stage, you can connect with your new web host.

All the formalities have done. Now log in to your old account and delete old files & database. Do not worry. You still have a backup in your pc. You can use it again for the future migration process. We try our best to elaborate on every step and see the process is not so difficult.

Did you move WordPress site to new hosting? If so, share your experience with us.

Add Your Comment