This article will walk you through migrating your WestHost Site Manager account to cPanel. If you have any questions about the following steps, please contact our WestHost technical support team.
If you are looking to migrate your current Site Manager hosting account to our cPanel environment, you have come to the right place. This guide is meant to aid you in the process of quickly and easily moving your content to cPanel.
Before you go any further, you should first review your account for any possible compatibility issues. We do have a review guide which you can find here. If you have questions about whether your Site Manager account is compatible with cPanel, please don’t hesitate to contact support and we will be happy to take a look for you.
Now that you’ve reviewed your account for migration, the next step is to sign up for a cPanel account here.
Take a look at the available hosting packages on our website and determine which will best fit your needs. Once you’ve decided which hosting package you'd like, please sign up with the same primary domain as your Site Manager account. This will prevent you from running into content placement issues in the future. During the checkout process, you will be asked which domain you wish to create the hosting account. When this prompt appears, enter your Site Manager domain in the "Use an existing domain" field to continue. Click"Use Domain".
This process will provide you a login to our Client Hosting Interface (CHI), which utilizes cPanel to manage your web site. If you need help, our sales team can answer any questions that you may have while ordering a cPanel account.
Next, you will need to move your website content to your CHI account (cPanel). To do so, you will need to use an FTP client such as Filezilla or you can use SSH. An SSH client like PuTTY will serve you well. If you’re using a Mac, you can use the terminal built into the system. Don't worry if you aren't familiar with these terms, this step simply comprises moving your website files from Site Manager to cPanel.
If you’re using an FTP client like Filezilla or CyberDuck, you will need to download all the website files from Site Manager and then re-upload them to your cPanel account. We recommend that you create a folder or location on your computer to store your website’s files so that they don’t get misplaced.
Connect via FTP to your old (Site Manager) account using the domain and your username/password associated with that account. Proceed with the migration by following instructions from the FTP program. First, download the program, run the program, and follows the necessary steps to enter your information and begin migrating your files.
Your website’s files will be located in the directory /var/www/html. Locate this directory within the ‘Remote Site’ window of your FTP.
Now, simply drag and drop the contents of the /var/www/html folder into the folder you have created on your local computer.
Next, retrieve all of your databases. To do so, navigate to PhpMyAdmin. You can access this at ‘domain.com/pma’.
To download your databases to your computer, export them as .sql files. This will store all of the data in your database in a file so that you can later import it to your cPanel account. Click the ‘Export’ tab in PhpMyAdmin, and select the database you would like to export. Select the checkbox for ‘Save as File’ and enter a name for the file. A good choice for a name is to put the name of the database in the box so that your file will be <database>.sql)
Repeat this for all of the databases in your account excluding ‘mysql’, ‘test’, and ‘information_schema’.
Once complete, move the downloaded .sql files into the folder you created on your computer, and compress it into a .zip file.
You now have all your website content on your computer ready to be moved to your cPanel account.
To move your website content to your cPanel server, you must retrieve your FTP information for your cPanel account. You will need your cPanel username and password and the IP address for the cPanel account. Once you have your personal details, go ahead and transfer your files to the cPanel server. You can do so by uploading the folder that is on your computer to the public_html folder.
Your content is now available on the cPanel server. Please skip Step 3b and move to Step 4.
SSH is another method of controlling the data on your website, but it is more complicated than using FTP. If you are confident in your SSH skills, try the following steps. If not, revert to step 3a.
SSH into your Site Manager server using the format:
ssh email@example.com and enter your password.
You will need to make a migration folder for your content. To do so run the following commands:
Now, copy your website content into the /migration/sites folder:
If you have any other content outside of /var/www/html, make sure you repeat the command above with any other directories.
Next, you will need to make .sql files of all of your databases. This is a helpful command that will create .sql files for you and place them into /migration/databases.
Tar your migration folder to get it ready to move the cPanel server:
Note that this command may take a few moments to execute.
Once you have completed this task, you are ready to SCP to the cPanel server. You will need your cPanel password and username and the IP address for the cPanel account. Run the following command from your Site Manager server:
Type 'yes' and enter your cPanel password.
There are just a few more tasks to accomplish now that your content has been migrated to your cPanel server.
Now that you are in the cPanel dashboard, any additional domains you have will need to be recreated. Follow the guide here.
Note that you will also need to recreate your databases.
In this step, we will import your databases and move your website content into place. The instructions will vary depending on whether you used SSH or FTP to complete Step 3.
1. In the cPanel dashboard, click the icon for ‘phpMyAdmin’. Then select the database you would like from inside the window located on the left-hand side of your screen. Click the ‘Import’ tab.
2. Return to cPanel and click the icon for ‘File Manager’. Click the folder called public_html and you should see the folder you uploaded with your website content.
3. Repeat this step for any additional domains or folders.
Next, you will need to untar your content. Run the following command:
Wait for the command to finish.
It may take a few moments depending on the size of your content.
Once that task is complete, cd to migration/databases.
You must now run an import command for each .sql file in this directory. You will need the database user password you previously made when you created the databases in cPanel. Run the following command:
Repeat this command for each database and corresponding .sql file, replacing the dbname each time.
Now cd to migration/sites. You will be moving the content here to the root of the web server. You can simply run:
Repeat this step with any other folders in your ‘migration/sites’ folder.
If you are running WordPress, the configuration file is called ‘wp-config.php’. Open this file and modify the database name, user, and password to the versions created in the steps above.
For other configuration files, make sure you follow the same format, modifying the file to update the name, user, and password.
If you have emails that needs to be migrated, please follow this guide to migrate your emails How To Migrate Email To cPanel
If you run into issues migrating your emails, please contact tech support and we'll help. Simply open a support ticket with us through the support tab inside your chi.westhost.com account and let us know the usernames and passwords, as well as the domain once you used to create your email accounts.
Before making any DNS changes, you’ll need to test your site. You can do so by using a temporary URL. The format is as follows:
To update your DNS you need to change the nameservers for your domain(s). To complete this task, log into the website where the domain is registered and update the nameservers to:
This final step concludes your migration, you’re now live on your new cPanel server!
How To Connect With Putty Via SSH
How To Find My Account's IP Address In cPanel
How To Use FTP
How To Access My Account Using SSH
How To Migrate A SiteManager Account to cPanel
CHI - How To Reset The cPanel Password
How To Manage DNS
How To Create An Email Account
How To Use FileZilla FTP
How To Connect To cPanel Account Via FTP
How To Create MySQL Databases