Are you Sick of old hosting and planning to move your WordPress site to a new hosting company or a different server?
You won’t believe, I was struggling a lot with my old hosting provider.
No doubt, I was getting a better service from the old hosting provider, but my website was loading slow.
And the biggest disadvantage was-
“FREE SSL certificate“
I didn’t get FREE SSL certificate with my hosting plan.
In fact, they are charging a big ammount for SSL certificate.
Whereas other hosting provider are giving it FREE.
And that’s why-
I decided to change my hosting provider.
To be honest :
It took me almost a year to change my hosting provider.
I was afraid that what if I lose my website data or what if my website faces a downtime?
It can make my website temporary inaccessible to user and search engine.
Unlike others I was not handy with the technical part of web hosting.
But then I decided to learn the technical part of web hosting and when I learned everything-
Soon I transferred my website to a new hosting provider easily.
Here’s the deal:
In this article, I am going to share those exact steps that helped me to transfer my website to other hosting providers easily.
Step#1: Choose New Hosting Provider
Choosing the right hosting provider that fulfills your requirement is the most crucial step because you can not change your hosting after your purchase.
If you are a beginner and transferring your hosting within a year :
I think you should consider –
- Server location
You can even compare it with other hosting providers.
After you buy the hosting from the new company, make your web hosting account should be empty.
Do not install any application or upload any file immediately because we are going to do that later.
If you are planning to transfer hosting to another hosting provider, do it before two days before your old hosting account expires.
It should be active until we migrate to the complete website.
Step#2: Create Backup of your Website Files
It is the essential steps to create back up of all your files or data.
In fact, I will recommend you to take a backup of all the data more often.
At least, you will have all of your data if you lose your data from the server.
File Manager Backup
Open your old hosting provider’s Cpanel account; after login into cPanel, you will see a similar page ( as shown below).
Under the file section- click on file manager option.
File Manager is a folder where all of your website’s files are stored.
In short, you are getting a backup of your website.
In the file manager folder, you can see the home directory. Now in the home directory folder, click on public_html.
To create backup of public_html:
Press the right button of mouse keeping cursor on the public_html.
You can see the compress option, click on it and it will create a zip file of public_html.
Once you create a zip file, Keep the cursor on the zip file and press the right button of the mouse. It will show the different available options.
Click on the download button- That’s it!!
Important Note – Save this downloaded backup to the safe place where you can access it.
You will need this backup to upload on other hosting account.
The second backup you need is the database backup.
And you know what:
It’s much easier to get database backup.
All you need to do – Login to your cpanel account ( old hosting provider).
In the database section, you will see- “PhpMyAdmin” . You need to Click on it.
On the left-hand side in the PhpMyAdmin section, you will see the database name of your database.
When you will click on it, on right side,you will see many file in the database.
Above these files, you can see the export option click on it.
Now scroll down a little bit, keep the format as SQL and click on Go button.
Once the downloading is finished, save the database backup to the safe folder.
As you can see we have created two types of backup:
In the next step, we are going to upload this backups to new hosting cpanel account.
Upload website files backup
As I’ve shown you in the earlier section you need to follow the same process.
First login to new hosting provider cpanel account.
Under the file section-click on file manager.
In the home directory folder, you will see public_html click on it.
Here’s the deal:
To make process even more simple, you can create a new folder here.
You can upload website file’s back in this folder.
It will not create a confusion.
Next , click on the upload button and upload the zip file.
Once the progress bar shows 100% means you have successfully uploaded the backup file.
But that doesn’t end here:
Because, the backup is in the zip format and you need to extract it.
Click on the right button of the mouse keeping cursor on the zip file.
And click on extract.
Once the backup file is successfully uploaded, you can delete the zip file.
Create a Database and Upload the Backup File
First we need to create a database. Open cpanel account of new hosting provider.
Under the database section, you will see MySQL database-click on it.
New page will open where you can create database.
Below create new database, you will see an empty box – you need to enter the name of database.
Click on Create Database and the new database will be added to your account.
Next scroll down a little bit, to add user to database.
Fill the details in Add New User Section.
1. Add username
2. Generate password
3. Save the password on notepad or anywhere
4. Click on Create User Button
User is successfuly created.
In the next step, you have to add the created user to the newly created database.
Exactly below the Add New user section, you will find “Add user to database” option.
1. Select the user in the dropdown option
2. Choose the database
3. Click on “Add”
Once you click on the add button, a new page will open where you need to give privileges to the user.
Simply click on All Privileges option, and click on make changes.
Now one last step you need to take:
You need to add the database backup file to this newly created database.
Here’s how you can do this:
Click on PhpMyAdmin in the cPanel account.
On the left side, you will see the newly created database – click on it.
And to upload the database, click on Import option as shown in the image.
Choose the database backup file and upload it.
That’s how you have successfully completed 90% of hosting transfer process.
Step#3: Change the DNS Records
The final step that you need to take to transfer your hosting to other provider is-
Update DNS records.
Consider it to be the most important step in Hosting Transfer.
You domain is still connected with the old hosting account.
You need to connect it with new hosting account.
And for that you need switch your DNS nameservers. By doing this visitors will be taken to the new locations of your website.
Let’s do this:
You need DNS nameservers of your new hosting provider.
Contact your hosting provider or You also get this information on your email when you purchase the hosting.
Generally,DNS nameservers are urls
Now, to update the DNS Nameservers, login into your domain registrar’s account.
After this, you need to click on DNS button as shown in the image.
Now click on the change button, then switch the nameserver type from ‘Default’ to ‘Custom’.
After this, enter the nameserver urls and click on save button.
You have successfully changed nameservers on your domain.
It generally takes 4 – 48 hours to propagate for all users.