What made me to Migrate WordPress Website?
Since long back I am using Blue Host Web Hosting with their Indian Servers option for my Best of Guru blog and facing many server down issues.
The mistake I have done is choosing Indian servers instead of US server as was ignorant and new to blogging that time. Since then many of the bloggers said that Blue Host is one of the better Web Hosts out there, but unfortunately, my problem is with “Choosing right web hosting Servers within the Hosting”.
With my terrible experience with Blue Host India servers since last 6 months and although I have still 5 more months for next renewal, I purchased HostGator last month with their 60% OFF deal.
Although the offer is closed last month, Hostgator is offering 30% OFF on all the plans and the offer is still on.
So as I know many of the bloggers are facing this type of issues or related problems with their existing web hosting services, which inspired me to write this guide.
Coming to the point, today I want to share with you on how to Migrate WordPress website from one host to another. With my real life example, I will share my experience of migration from Blue Host to HostGator in this example.
The process will be exactly the same to any hosting servers only difference being the look of Cpanel.
I have divided the process into 6 simple and mandatory steps for easy understanding to everyone with not much technical skills required.
Before jumping into the step by step guide, I highly recommend you to take backup of your WordPress and then make a copy of it into your PC.
Step 1: Compress all WP website files and WP-Configure file from Old Server (Blue Host Cpanel):
Once you have taken backup of WordPress backup, now go to your old/current web hosting Cpanel and click on file manager from files section and select the domain name which you wish to transfer.
Make sure the correct filename is selected under the document root site option and make sure to check the hide file button.
Now check that you are at the public_html /your domain name and then select “Select all” file option and click on compress button as shown in the picture below:
From the list of compress options that pop up in the window, Select the .zip archive option.
It takes from few seconds to some minutes based on the size of your blog and internet speed.
Once the files are finished zipping, select the zip file and click on “download” and save that downloaded file into one separate folder on your PC.
Make sure to download the “WP-Configure” file too and save in the save folder.
The purpose for downloading Wp-configure file is to check the Database name, Database Username Password which will be used for later steps.
Recommended reading: Steps to create your own WordPress blog
Step 2: Export WordPress database From Old Host (Blue Host):
In order to export the WordPress database, you need to go to Cpanel — > Databases –> PhpMyAdmin and then select the database/domain which you are migrating, (you can check the DB name from your WP-configure).
Once you make sure you have got the correct database name click on select all option below and then click on the export option on the top. Now click on the “Custom” and then make sure all the files selected scroll down below and check the option called “Add drop table” and click on “Go”. The downloaded file will be in .sql format.
Copy and paste the downloaded file into the folder containing your old website files, wp-configure files.
Now there is no need of the old Cpanel (Blue Host) and you can close it or log off from it.
The next steps belong to your new hosting server/Web Hosting. So make sure you log into the new web hosting Cpanel, in this example it is HostGator Cpanel.
Step 3: Create Add-on Domain in New Web Hosting Server (HostGator):
Once you log into your new Web Hosting server Cpanel, go to Domains and then click on “Add-on domains”.
Now under create a new Add-on option create the one with your domain name which you are going to migrate to the new server.
Make sure you enter the password of your choice or click on the “generate password” and make sure to copy and paste the password into a notepad file.
[bctt tweet=”Want to migrate WordPress website for free?“]
Step 4: Uploading & Extracting zip files to new Web Hosting:
Now go back Cpanel —> Files —> File Manger and select the new domain/domain which you are migrating, and then click the upload button.(make sure the root is public_html/your domain name).
Select the zip file from the folder which we already downloaded from old Web Hosting.
Now once the file is uploaded, select and click on the “Extract” option on the top.
Once the files are extracted, check by pressing the Refresh button to check whether the files are extracted.
Step 5: Create new Database in new Web Hosting Server and upload old DB files
Go back to Cpanel again and scroll down and find the “My SQL databases” option in databases, click on it to create a new database file.
Now copy the database name and put into your notepad. Go back and add database user and generate a password using a password generator and make sure to copy the password and put into the notepad before you close the dialogue box.
Go back and find the add this user to database option and click on add button. You will now find a window where you see all privileges option and check all the options there and click make changes.
Now you have to upload the file we have already created from old Cpanel.
Go to Cpanel click on phpMyAdmin select the database name and you find nothing in that.
Now please click on Import button and scroll down to press the “Go” button. It takes few minutes to import and once you have completed the import cross check that there are any old left over.
This is very import step and make sure you do this without fail. To do this, please select all the files and click on search. Now type “public_html” there select all and click go.
If you find any of the files other than “0” then click on the particular file and then edit the file. In the below example we found a record which is having old database name of old Web Hosting.
Now replace the same with the new database name which you have created in the new Web Hosting. Once you are done, click go and that’s it.
Now Open WP-Config file which you have downloaded from the old server and then change the database name, Database User Name/ID and password with new database details.
Please note that everything you are changing is within the Single inverted quotes. Now go the file manager and then upload this updated file to overwrite the file already exist.
Step 6: Change the Domain Name Servers from Old to New Web Hosting
So we have entered into the final step in this process you have to change your domain nameservers from the domain registrar panel.
You can obtain the nameservers of your new Web Hosting company from your email or else at the bottom of your web hosting Cpanel. Once you find the nameservers(Blue Host), edit them with the new Nameservers(HostGator) on the domain registrar panel.
Many of us have 3 options to Relocate or Transfer or Migrate WordPress Website.
- Hiring a Professional Web developer to do the work with paying some dollars to do so.
- Searching for Hosting services that provide FREE migration with their selective plans.
- Trying to do yourself and once it is failed there is not much harm, you still can hire a consultant or ask your hosting for help. This is not a big task and has to do with Free of mind that’s it.
I hope I have managed to give the best information and guide to make yourself ready to do your migration of WordPress website. But for some reason, if you are not confident enough or fail to do so, please contact me @ email@example.com (or) firstname.lastname@example.org to assist you in FREE migration and setup process.
For Web Hosting, We Recommend the following:
Our Recommended Domain Registrars: