You don’t have to migrate your WordPress site if you are selecting a good host at the first place. However, if you do need to change your web host, then there are a couple of ways to do so. For people who don’t want to go through complexity, they can use a WordPress migration plugin. However, if you are cool with managing things manually and need a reminder of how to migrate WordPress from one host to another, then we can help you out.
It is important to understand that you should take care of every single step so you don’t end up missing anything. By following the steps properly, you can easily get things done.
Before you go on to start the migration process, you need to select the perfect host for your website. This time, you should not make mistakes so you don’t have to change your host ever again. You need to find a host that will give you better performance and excellent features so you can run a website without any problems. Let’s start the process of migrating a WordPress site.
Migrate WordPress site manually
If you have decided to manually migrate a WordPress site, then you should understand a couple of things. The first thing to do is to select a good WordPress host. There are multiple hosting packages available and you will have to select the one that suits you. This time, you need to choose a web host that you can grow your website with.
Make sure that you have access to the server files. You should have complete FTP credentials or cPanel credentials to move on.
Once you have selected a good web host, then you can move on and start the migration process.
Backing up your website
Step one will be backing up your entire website content. As you are doing things manually, we will suggest to do this manually as well.
To do so, you can take help of an FTP tool. You can use FileZilla and copy all of your website’s files onto a secure directory (Your PC).
You will have to connect to your server using an FTP program and go to the root folder of your WordPress site. Root folder in most web hosts is ‘Public_HTML’.
You can right click that folder and download the complete folder.
You will be able to download the complete copy of your website. Once the download is completed, you can move on to the next step that is creating Database backup.
Create Database Back up
The next step will be copying your website’s database. Database stores al the site’s content and you will have to access Database to download it.
You will require cPanel credentials to take Database backup. Once you have logged into your cPanel, then you will have to locate the Database tab and click on ‘phypMyAdmin’.
Exporting WordPress Database
After opening phpMyAdmin, you will be able to see a lot of tables and database core. You will have to select the database of your website that you are trying to migrate (You will know which one to choose).
After selecting the database of your WordPress site, you will have to click on export. It will create a .sql copy of your database and you will have to store that file on your PC as well.
Make sure to keep these files save as you will have to import them to a new host.
Creating a New Database & Importing Old One
Your work at the current web host is completed. Now you will have to move to the new host that you have selected and create a new database.
You will follow the same process. Here is what you need to do for creating a new database.
Step 1: Go to cPanel > MySQL Database Option.
Step 2: Create a new database and create a database user. (Make sure to copy these credentials and save them as you will have to use them again later)
Step 3: Now you will have to access the newly created database using phpMyAdmin.
Step 4: Use ‘Import Tab’ in the new database and upload the .sql file that you have downloaded from the previous host.
Now, your database is safely migrated to the new host. All you have to do is to upload the rest of the files to your new host.
Uploading Site’s files to a New Host
You will have to upload your site’s files to a new host. Make sure that ‘Public_HTML’ folder on your new host is empty.
You will have to connect to your new host using FTP and enter the folder named, ‘Public_HTML’.
Here, you will right-click anywhere inside the folder and click upload. Locate the site’s files that you have previously downloaded from old host and upload them to the new one.
The process is going to take time and once the uploading is completed, you can move on to the next step.
Editing wp-config.php File
At this point, your site is ready and you just need to finish small tweaks to get it live. All you have to do is to edit ‘wp-config.php’ file and enter the correct Database credentials.
Go to WordPress root folder of your website using FTP program. Locate the file named, ‘wp-config.php’. Right click on the file and select the edit option.
After opening the file, you will have to locate the following code snippet:
You will have to change the Database name, user, and password. You will enter their values when you created a new database credential. As you have already copied those values, you will now have to put them here and save the file.
Note: It is very important to put the right values otherwise, your site won’t work.
Once the process is completed, you will be able to visit your WordPress site. However, there is still one thing left that you will have to do to put your site on the new host.
Your site’s domain name servers have to point to the new host. To do so, you will need a couple of things.
First, you will have to get information from your new host (New DNS Record).
The second thing is to login to your domain name registrar.
Once you have entered your products at the domain name registrar’s website, you will select your domain name and change the DNS provided by your new web host.
After making the changes and entering the correct DNS, your work is done. However, it can take some time for the new DNS to work properly. Be patient and you will be able to see a live website pointing to a new DNS in a short interval.
Congratulations, you have just migrated your WordPress site from one host to another following a manual process. Let’s have a look at how you can do it using a WordPress plugin.
This guide will help you migrate WordPress site from one host to another. It becomes extremely easy once you get started with the procedure. We will surely tell you how to migrate WordPress site using a plugin. However, if you can do it manually, then doing so with a plugin will become a lot easier for you. Make sure to also check out the small guide to redirect a WordPress page to improve your WordPress knowledge.