BuycPanel Blog

BuycPanel Blog

Latest news and updates

Relocate Your Content Using cPanel

Posted by Jamison on 22 10 2015.

Follow These Simple Steps to Move Your Site to a New Host Using cPanel!

 

For people who own and run websites, the flexibility of maintaining their sites on the hosting that they choose has great value. cPanel provides this convenience to site owners- making the process of migrating your site simple. This includes all your files and databases.

 

If you are looking to move your site from one host to another via cPanel without the risk of losing existing files and databases, here is a step-by-step process to do just that. If you follow closely, you shouldn’t have any problems running the site after you finish the migration.

 

This process works for most content management systems (CMS) like WordPress and PrestaShop.

 

Backing Up Your Files

 

You need to backup your site to make the process of migrating them to another host easier. This ensures that all the files are in one place and will work…

Follow These Simple Steps to Move Your Site to a New Host Using cPanel!

 

For people who own and run websites, the flexibility of maintaining their sites on the hosting that they choose has great value. cPanel provides this convenience to site owners- making the process of migrating your site simple. This includes all your files and databases.

 

If you are looking to move your site from one host to another via cPanel without the risk of losing existing files and databases, here is a step-by-step process to do just that. If you follow closely, you shouldn’t have any problems running the site after you finish the migration.

 

This process works for most content management systems (CMS) like WordPress and PrestaShop.

 

Backing Up Your Files

 

You need to backup your site to make the process of migrating them to another host easier. This ensures that all the files are in one place and will work after uploading to the new host.

 

Note: Backup Wizard will not be used because that is for backing up and restoring on the same hosting account.

 

  1. Go to File Manager → Home Directory
  2. Locate the directory that houses the files that you want to move over the new hosting account. In most cases, it is the public_html directory that holds all the files of your site.
  3. Select the directory and click compress.
  4. Choose the compression type. .Zip archive is recommended.
  5. Click on Compress Files and wait for the .zip file to be created.
  6. Download the .zip file by clicking the download link.

Note: If you are using Safari as your browser, it automatically unzips compressed files. What you have to do is go to preferences on Safari and uncheck “Open safe files.”

 

Backing up your database

 

For this process, it is recommended that you use the Backup wizard.

  1. Go to Backup Wizard.
  2. Click on the backup link.
  3. Click on MySQL Databases.
  4. Choose the database you wish to backup. It will download automatically upon selecting.

 

Restoring/Uploading your files and database on the new hosting account

 

This process will work for most applications unless you have a very sophisticated application that requires another level of expertise.

 

Migrating the database

 

  1. Go to Backup Wizard
  2. Click on Restore→ MySQL Database and click Choose File.
  3. Select the database file that should end in .sql.gz or .sql.
  4. Go to Home→ MySQL Databases and confirm that your database file is displayed inside. The name should change to reflect your new host’s directory name and webhost account username.

 

Migrating the files

 

  1. File Manager → Home directory → public_html
  2. Inside public_html, click Upload and choose the .zip file you created in backup. Click upload.
  3. Go back to the Home directory and select the .zip file and choose Extract. A log must show up after extraction. Close it.
  4. Delete the .zip file.
  5. Go to public_html direcotry and select all items.
  6. Click Move File. Check the destination path. It should say /public_html and not /public_html/public_html/.
  7. Go up one level to the root public_html directory and delete the empty public_html folder inside it.

 

You can now confirm the successful migration by accessing your site.

 

cPanel affords you this level of flexibility and ease of use- keeping your site running well 24/7. Its compatibility with most CMS and the simplicity of its interface ensures you’ll have a smooth time running and managing your sites.