[Practical P-1] How to Migrate a Drupal 7 Website to a New Server with Cpanel (with Screenshots) - PART A

Submitted by Rajasekhar on Sat, 11/17/2018 - 19:19

Please follow below steps to migrate the website:

  1. Create a backup of the website from the existing server.
    • Create a zip file of the source folder.
      1. Note: You may have to check with the person/team that handles the older server.
    • Take a database backup of the website using backup & migrate module of Drupal.
      1. Note: If you do not have permissions, you may ask a person/team that handles the old website.
  2. Log in to the new hosting server.

  1. Add the domain as an Addon Domains. Give an appropriate name for the folder while adding addon domain. There will also be a subdomain created for the addon domain.
  • Go to Domains section, under that click on Addon Domains, now fill field details like New Domain Name, Subdomain, Document Root, and Password. Then click on the Add Domain button.

  1. Create a new database and a new user in Cpanel. Assign the user to the newly created database and grant all the privileges.
  • To create a database, Go to the Databases section, click on MySQL Databases. Type your database name and click on Create Database.

  • To create the user, go to MySQL Databases. Fill username and password, click on Create a User. And also provide all privileges.

  • Now add user to the database, select user and database. Finally, click on Add.

  1. Go to phpMyAdmin in Cpanel and navigate to the newly created database and import the backup of the database of the website to the same.
  • Browse the database file then click on Go.

  • Wait until a successful message shows like below image.