WordPress is one of the most popular blogging and website platforms across the World. This Content Management System (CMS) has been used by more than 75 million websites.
Migrating your WordPress website from existing host to different host is quite a risky task. The biggest risk in migrating a website to a brand new server is the probable loss of your valuable data and information.
To overcome this problem, people either pay a hefty amount to a professional for moving their site on their behalf or find new hosting providers. If you spend a little time in learning, then migrating your website is not a big deal to tackle.
Here in this post, we will let you know how to migrate your WordPress site from existing host to new host with just few steps:
1. Backing Up Your Existing Website’s Files
This is the very first step of migrating WordPress. You have to first get the entire backup of your website. As you are about to do significant changes, it is certainly a good practice before WordPress installation.
Although, there are so many plugins, which are specially made for backing up your site you need to go with a manual approach. You can use an FTP program, connect it to your web host and then copy all the files in your directory to a new folder on your personal computer.
This also includes a hidden file which will be displayed after consulting your FTP program. This procedure takes time as there are a large number of media uploads on your site.
2. Exporting WordPress Database
3. Create WordPress Database On New Host Server
Before moving onto new web host, you have to create WordPress database for importing your SQL data. Log in to the new web host with the given credentials and connect it to cPanel. Use MySQL Database application. If you don’t have this application, you should connect with their support team to discover their method of creating a new database.
Open MySQL Database and make a new database with an appropriate name for your website. Create a new MySQL user with a secure password. Now add a user account to a new database and allow it All Privileges. Note down this new username and password for further use.
4. Edit The WordPress File
Get back to the folder on your personal computer where you downloaded the backup files of your website. In that particular folder, you will find a file named wp-config.php that manages the access to your database and WordPress.
Make a copy of this file and save it to another folder on the desktop. The reason for this is to avoid the mishap before the changes are to be made for restoring the data. You have to replace the database name, database username, and database user password.
5. Import The Database
Now, when your new database is ready to work, you can start the importing process. Transfer PHPMyAdmin from cPanel to your new server and select new database from the list. Choose the import tab from the navigation bar.
Now, you have to go to the File To the Import section, where you click the Choose File button and choose SQL file you exported. Untick the partial import check box and select SQL format. Your database import will begin with a click on Go Button.
The importing time depends on the size of the database. Once it completes, you will receive a confirmation message.
6. Upload Your WordPress Files To Your New Host
The time has come to upload your files to the new host. Connect with the new web host by using an FTP program. Find a new folder, where your website is to be held. If this is your primary server or this is the only site to be featured on this server, then upload your files to the public folder. You can upload your website to the remote directory.
This process could take some time. Do not delete these files from your computer after the upload finishes. This could be required in the later steps.
7. Changing Your Website URL
This is one of the important steps of this process. For replacing old domain with a new domain, you have to make alterations in home URL values in the database. This will make sure that you will be redirected to your new domain, whenever you open your site rather than being directed to the old one.
8. Final Changes
Before you use your new site on a new host, you have to reconfigure your DNS settings. This will set your old host to fix the correct records to the IP address of a new server. The process depends on the place where you have registered your domain.
During 48 hours window, you should not make any changes to your website as you might change the older version of the site. After the completion of 48 hours, you can now access your new website of a new host.
Still, you should save a local backup copy of these files along with originals. It is a good idea to be on a safer side.
So, as you can see the above steps for migrating your old host to new host. It looks that the process is complicated, but it is very simple if you pay much attention at each of the above steps.
Go for it and let me know if you face any problem.