Migrating from another WordPress host to Hostinger

Migrating from another WordPress host to Hostinger

This support article outlines the steps for migrating your WordPress Blog site from another host to Hostinger. We’ve used SiteGround as an example to illustrate the migration process from SiteGround to Hostinger.

Overview

  1. Downloading the backup from SiteGround
  2. Downloading the Database from the Siteground
  3. Importing the Backup Files to Hostinger
  4. Importing the Database to Hostinger
  5. Establishing the Connection to the Database
  6. Creating a Self-Signed SSL Certificate for HTTPS on the blog
  7. Accessing the Blog Using Host Entries
  8. Launching the Blog


Downloading the backup from SiteGround

This support article explains the blog migration from SiteGround to Hostinger.
  1. Navigate to SiteGround, locate your website, and click on the Site Tools button. Then, click on Devs > SSH Key Manager and add a key there.
  2. To establish a connection to your SiteGround account, you need FileZilla. Download it from here: https://filezilla-project.org/download.php?platform=win64
  3. Please refer to this support article to understand how to establish a connection to your SiteGround hosting account with FileZilla. : https://world.siteground.com/kb/how_to_establish_sftp_connection_to_hosting_with_filezilla/ 
  4. Open FileZilla and access the files via SFTP. Click on File > Site Manager > Add a Site, select the SFTP method, and enter the SSH values here.


  1. Under Remote Site, the files will be displayed, and you need to locate the correct file to download. In this case, the blog file (the WordPress installation file for the blog) needs to be downloaded. Click on Home > Customer > www > yourdomain > public_html > Blog. Download the entire blog file to your local storage.


Downloading the Database from the Siteground

Open SiteGround and locate the website. Click on 'Site Tools,' then navigate to Site > MySQL > phpMyAdmin and click on 'Access phpMyAdmin'



Select the Structure and click on the 'Export' button


Simply click "Go," and it will download the entire database.


Importing the Backup Files to Hostinger

Open Hostinger and navigate to Website > Dashboard. Search for SSH and select SSH Access. The SSH credentials will be displayed, and you can use these to connect to the file manager in Hostinger.

Use these credentials to connect to Hostinger via SFTP in FileZilla. For more information, please refer to this support article: https://support.hostinger.com/en/articles/5972689-how-to-connect-to-your-hosting-using-sftp

After connecting via SFTP, navigate to the public_html directory under the Remote site: home > uXXXXXXXXX/domains/yourdomain.com/public_html. In the Local site, locate the backup file and find the blog folder. Right-click on the blog folder and select Upload.


Wait for the uploading process to complete. Once the upload is finished, all your blog files will be uploaded to Hostinger.

InfoPlease remember to always upload files to the Blog folder and ensure that they are successfully uploaded.


Importing the Database to Hostinger

Open Hostinger and navigate to Website > Dashboard. Click on Database, locate your database, and enter phpMyAdmin. If the database is not created, please create a new database.


Select the structure and click on Import. Choose the backup SQL file downloaded from SiteGround and click on Import. This will import the entire database.


Info
If the database size is below 256 MB, this method will work. If the database size exceeds 256 MB, you need to import the database using the SSH method. To learn more about this process, please refer to this support article: https://support.hostinger.com/en/articles/4536306-how-to-import-a-database-over-ssh


Establishing the Connection to the Database

After importing the files and database, you need to match the database credentials to the WordPress installation. To do this, open Hostinger and go to Website > Dashboard > File Manager to access the files. Navigate to public_html > Blog > wp-config.php and update the database name, database username, database password and table prefix (please check the database for the prefix used).



Info
For more detailed information, please refer to this support article: https://support.hostinger.com/en/articles/1583224-how-to-fix-error-establishing-a-database-connection


Creating a Self-Signed SSL Certificate for HTTPS on the blog

Once you have successfully followed all the steps above, the blog will work only with HTTP (e.g., http://www.yourdomain.com/blog). To enable HTTPS, you need to install a self-signed SSL certificate in Hostinger. Once the blog is live, the SSL you enabled for the main domain (VL's Let's Encrypt SSL) will be automatically applied to the blog as well.
IdeaTo generate a self-signed SSL certificate, please refer to this support article: https://help.vacationlabs.com/portal/en/kb/articles/creating-a-self-signed-certificate

Once you have generated all the files, open each one in Notepad, copy the contents, and then navigate to Hostinger's dashboard. Select Website > Dashboard, and from the menu, go to Security > SSL. If there is an already installed SSL that is in a failed status, uninstall that SSL.


Select "Import SSL" and add the values of the private.key in the Private Key field, certificate.crt in the Certificate field, and request.csr in the Certificate Authority Bundle field (from the files you already generated) and click on Install SSL.


Once you install the SSL, you will be able to access the blog URL with HTTPS.

Accessing the Blog Using Host Entries

Before making the blog live, it must be tested to ensure that it has been migrated properly. To access the blog and WP Admin, host entries need to be configured.
The easiest way to configure host entries is by using the PowerToys tool for Windows.
You need to find the IP address of your website. To do this, open Hostinger and search for the DNS Zone Editor or FTP Accounts to locate the IP address.

After copying the IP address, configure the host entry in the PowerToys tool.


Now, the blog and WP Admin can be accessed only on your PC or laptop.


Launching the Blog

Once the migration is complete and you have ensured that everything has been migrated properly, please share the IP address and domain with the Vacation Labs support team (please raise a ticket by sending an email to support@vacationlabs.com). This will allow us to set up the reverse proxy and make your blog live.


    • Related Articles

    • Creating a Wordpress blog on Hostinger and linking it with your Vacation Labs website

      Overview Before you begin - don't skip this section Sign up for a Hostinger plan Adding a website on Hostinger Deleting the WordPress installation to create a new installation in the /blog directory Installation of WordPress in the /blog directory ...
    • Adding a blog to your Vacation Labs website

      Before you begin If hosting your blog on a subdomain, i.e. blog.yourdomain.com, is acceptable to you then nothing in this, and related, support articles applies to you. Please host your blog using any blogging platform (Wordpress, Ghost, Blogger, ...
    • Adding A record and CNAME in Bigrock

      To Add an A record in Big Rock follow these steps Log in to your Big Rock account. You will now see a page with all purchases made by you on our system Click on the domain name for which you need to change the DNS records Click on the DNS Management ...
    • Accessing the blog admin if your website is behind a CDN

      You need to perform these steps ONLY IF If your website is being served on a CDN. Quick overview Confirm that you are unable to access the blog's admin area Configure host entries using the manual method Add a local host entry to access the blog's ...
    • How to make your website live? (Required DNS settings and records)

      Overview Once you have completed your work on your website on Vacation Labs, you can connect your custom domain with the website by taking the following steps: Adding A record & CNAME record in your DNS Adding a custom domain to your Vacation Labs ...