Transferring your cPanel account from one server (referred as source) to another server (referred as target / destination) can be done in a few different ways. The majority of alternative techniques that aren't covered here call for root-level WHM access to your target server. In this post, I'll go over a technique that should work for everyone, particularly if your destination and source cPanel accounts are on shared servers and you only have access to your cPanel with no root privileges. To migrate using this method, you do not need to have any access to WHM.
For the migration, we'll make use of the cPanel's Backup and Restore functions. There is limitation on the total amount of data that cPanel can successfully restore. This limit is around 4 GB. Migration may not succeed if your website's email and file use exceeds 4 GB on disk. Therefore, it's important to perform some preliminary cleanup in order to minimize the overall amount of your data. Further, you will be able to complete the move more quickly if you reduce the size.
If you are unable to get your overall data size down to less than 4 GB, I will outline your options later in this post.
Open the File Manager interface in your source cPanel, and manually perform the following actions to reduce disk usage:
Link to open the File Manager
Folders to look into for old unwanted files
Delete old log files under logs folder.
These types of files can safely be deleted
Delete all unwanted files and folders under your website's public_html directory. These could be past backups of old website designs and associated pages and image files that you are no longer using.
Delete all old stats and logs files. These are under various sub folders of your tmp folder.
Navigate through each sub-folder and delete old dated log files
Delete all emails in the trash folders of each email account.
After the cleanup, you can check how much space your account is using from the Disk Usage section in your source cPanel. If the disk usage is below 4GB you are good to proceed.
Even after you have removed all unwanted files, if your website and emails are using more than 4 GB space, you need to download few folders to your local computer and keep them for uploading later after all other steps are done. Essentially, there are 3 parts of a website that consume space - your website files, emails, and database(s). To keep matters simple, I will only explain how to reduce the size of your website files and email accounts. The database migration becomes too technical when database size is big. We will therefore not cover the database part in this article. Perhaps, in future, I will write another article to specifically cover the same.
Reducing website space: Connect to your source cPanel server via any ftp client and download everything under public_html directory. You need to download all files, sub-directories and their full content. After you have downloaded everything under public_html, you can safely delete all contents under this directory on your source server. This will in all likelihood, reduce your overall disk usage below 4 GB.
Reducing email space: If you still need to reduce space further, download the full contents of your mail directory in the source server. After finishing the download, drill down to each sub-directory under the mail directory of the source server and only delete the email files that are under cur, new and tmp sub directories of each of your email account.
Now you are ready to proceed to the next step. Make sure that the destination cPanel account has enough capacity - at least 1.25 times the amount of space being used on the source server.
You will need this step only if your destination server is a dedicated server or VPS or reseller server, where you have WHM access. If you purchased one off cPanel hosting only for your domain that you wish to move, you already have a cPanel account created, so you can skip this step. Check this article to learn how to create a new cPanel hosting account in WHM.
The Username of your new cPanel account must be exactly the same as that of your source cPanel account. If it isn't please contact your hosting provider and ask them to make the username same in the destination server.
Navigate to the backup section in your cPanel. See screenshots below as a guide.
Click at the Backup Wizard button
Next, click at Back Up button
You are only concerned with the 3 buttons under the Partial Backup sub-section
Now open your destination cPanel. Navigate to the Backup Wizard >> Restore section here and one by one restore all downloaded files. You can restore files under each sub-section by clicking at the respective button and uploading the concerned zipped files (that you downloaded earlier) one by one.
This step is required if you earlier downloaded (via FTP) your website and email files in order to reduce space.
Connect to the new server via ftp. Note that since your domain is still pointing to the old server, you will need to connect using the new server IP address in place of domain name. After you are connected via ftp, upload the email files under the mail directory of destination server. You can upload everything that was downloaded as mail directory. Likewise, upload everything that was downloaded as public_html under the public_html directory of destination server.
Now that you are all done, update the nameservers of your domain by replacing the current nameservers of your domain with that of the destination server. This can be done from your domain management control panel provided by your domain provider. Once you have updated your nameservers, wait for 4-24 hrs for the newly assigned nameservers to propagate. After the nameservers have propagated, if your hosting cPanel includes an Auto SSL feature, run the auto SSL to activate https access for your website.
Your website on the destination server is now all setup and available for the visitors.
How to move your Email accounts from one hosting provider to another without losing any mails?
How to move your Email accounts from one hosting provider to another without losing any mails?
How to resolve the issue of receiving same email message multiple times when using Outlook?
Self Referential Data Structure in C - create a singly linked list
Mosquito Demystified - interesting facts about mosquitoes
Elements of the C Language - Identifiers, Keywords, Data types and Data objects
How to pass Structure as a parameter to a function in C?
Rajeev Kumar is the primary author of How2Lab. He is a B.Tech. from IIT Kanpur with several years of experience in IT education and Software development. He has taught a wide spectrum of people including fresh young talents, students of premier engineering colleges & management institutes, and IT professionals.
Rajeev has founded Computer Solutions & Web Services Worldwide. He has hands-on experience of building variety of websites and business applications, that include - SaaS based erp & e-commerce systems, and cloud deployed operations management software for health-care, manufacturing and other industries.