Move WordPress from One Hosting to Another

307

Hi There today I am going to show you how to migrate from one host to another, which is much technical and challenging for the beginners but easy for the experts so this tutorial is for both who can migrate safely and successfully.Without increasing the topic much on introduction, let’s get started with the steps.

Step 1. Installing Backup WordPress Plugin

  1. Login to Your WordPress Dashboard then hover on Plugins from the left side and then Click on Add New option.
  2. On the right side look for the search options box and put: BackUpWordPress and install the plugin and Activate it!

Plugin BackUpWordPress is being activated and now ready to generate the Backups which we can move to the new hosting.

Step 2. Generating The Backup

  1. Hover over the Tools Option from the left sidebar and then click on the Backups option
  2. You will be shown the options for generating the backups.

Now let me give you the visual instruction for the better understanding the functions and the process work.

When You goto the BackUpWordPress plugin setting you will find these options :

Click on the image to Zoom!

From The Above screenshot we find the four options :

  1. Run Now: This will start generating the Backup, but do not click on the first as the need to set up to backup both Database and the Files.If we click right now, then it will take only Files backup and database will be skipped.
  2. Settings: Configuring the backup plugin to mention the backup should be taken for Database and Files and the Schedule timing which does not need anyhow.

Look at the below image which we need to set for the backup process.

On Backup option from the above image, we would choose only both Database & Files as we need to take both database and files for moving to another hosting provider.Now click on Done button, and that’s it, again it will redirect the previous page where it is the main page of the plugin.

3. Click on Run Now button now it will start generating the backup for your website to move to new hosting, wait for few moments ( might take two hours if your site is too heavy or having large data files and database )

After the backup is being generated it will show up something like the below image :

You can download the backup to move to the new hosting, click on the download button and zip file will be downloaded.Once downloaded you are ready to move to the new hosting server.

Step 3. Setup the Files and Database in New hosting

We are using Cpanel as the best hosting control panel as our hosting service provides the Cpanel for the better and easy maintenance of your website.however we do not want to waste your time by saying more details of it as you can experience it by Googling or visiting their website.

  1. Login the Cpanel
  2. If your primary domain is the old hosting domain then you can simply goto the file manager from the Cpanel main page, if your backup domain data is of not a primary domain then you can add that domain in the Addon Domain and then goto the respective folder of the domain from the Cpanel > File Manager>Public_html>Your domain directory.
  3. Now in this, you need to upload the zip file that you have downloaded.

Once the upload complete extract it in the Cpanel, below is the screenshot about how to extract ( Right click on file and click on Extract )

Once extracted refresh the page and you got the files and databases inside the domain directory.Now look for the .sql file and download it. We need this to connect the database to the WordPress files for your website to work properly.

Now find the wp-config.php file and right click on it and edit the file.
Inside the wp-config.php file find the below lines :

  • define(‘DB_NAME’, ‘database_name_here‘);
  • /** MySQL database username */
    define(‘DB_USER’, ‘username_here‘);
  • /** MySQL database password */
    define(‘DB_PASSWORD’, ‘password_here‘);

My highlighted bold colour details are need to be generated freshly to match the database details so we need to goto the Cpanel homepage and find MySQL® Database Wizard and click on it to generate the details for the above mentioned logins.

Step 1: Create A Database

I have put random strings gbytkabwrth so my database_name_here will be replaced by sourcete_gbytkabwrth where sourcete is the Cpanel login.

Next StepNow we have put again random string here so inside the wp-config.php file we will put sourcete_randomstringagain in the place username_here and we will set the password here and also in the position of password_here inside the wp-config.php file.

Now click on the Next Step and proceed to the next step.

allow previllege to user and database

Now you will see it is asking for the permission setup here you choose ALL PRIVILEGES option and click on Next Option and you are done finally.

Save the Wp-Config.php file too after putting all the details as we mentioned.

Step 4. Importing the database

Goto the Home page of the Cpanel and find phpMyAdmin and click on it then it will take you to the new window.Now from the left click the created database in our case it will be sourcete_gbytkabwrth.

Now from the right up to find Import option and click on it then you will see any option to choose file beside Browse your computer text.

Choose the file that you have downloaded the .sql file and import it , after few moments it will be uploaded, and your WordPress is ready to go for the next step.

Step 5. Change the nameserver

Once you completed all the steps above now its time to change the nameservers of the current hosting provider, so changing the nameserver will help your domain to point the hosting server from old to new hosting.

It will take 24 to 48 hours for the DNS propagation so in the mean time do not do any work on your website wait for the changes and after 24 – 48 hours you will be able to browse your website or work on your website.

Tips: If you want to know is your domain moved to new server fully or not then you can goto the website https://www.whatsmydns.net/ and put your domain and find whether it is showing the old server IP or new then you will understand where it is being propagated.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More