BuycPanel Blog

BuycPanel Blog

Latest news and updates

Migrating All of your cPanel Accounts from One Server to Another (part 2)

Posted by Alex on 03 02 2017.

Assuming that you have portable IP addresses, and that you have the option to migrate them, continue following the steps below to copy and migrate accounts to a new server using SSH keys. In cases wherein your cPanel server comes from a third-party web host or data center, ask them first regarding the possibility of migrating the IP addresses.


Make sure you have successfully completed all of the steps in the first part of this 2-part series first before proceeding to these next steps.


Step 5


In completing Step 4, you should have already executed the command /scripts/fixetchosts in order to add your hostname server and IP address to the file named /etc/hosts. Upon successfully doing so, you can now change all of your accounts’ IP address to the new and correct one you will use.


This is a crucial step, as sometimes, migrating accounts may result in the system setting the accounts with the primary and main IP address of the new server. Thus, you need to change the IP address of each and every account to the current one you will use. To do this, just use the IP Migration Wizard interface of WHM by navigating through Home – IP Functions – IP Migration Wizard.


Step 6


Just in case you have a non-DNS cluster member server you can skip this step. On the other hand, you would have to perform the following steps so that you can join your new server with the appropriate DNS cluster.


  1. Go to your DNS Cluster interface found in your WHM account. Just navigate to Home, then Clusters, and finally, DNS Clusters.
  2. Choose the option for “Enable DNS Clustering.”
  3. Click on the option for “Change.”
  4. Click on the “Return to Cluster Status” button.
  5. Choose the server you want to have added to the DNS cluster. Just click on the cluster menu and look for the option “Add a new server.”
  6. Click on the “Configure” button.


Step 7


Now, you have to reinstall and reinstate all of your SSL certificates.


However, when your server meets these criteria, you can proceed to Step 8.


  1. Your server’s accounts do not use or have Certificate Authority SSL certificates.
  2. The old and the new server both utilize an SNI-capable OS.


On the other hand, when you do not meet the two qualifications above, follow these steps so you can upload existing SSL certificates to your new server:


  1. Go to your WHM account and then navigate to Home – SSL/TLS – Install an SSL Certificate on a Domain interface.
  2. Having copied the SSL certificate, paste it onto the provided text box. You can also just click on the button “Fetch” so you can upload *.crt files.
  3. Click on the Submit button, which will install your SSL certificates to the server.


Step 8


Last, but not the least, is to ensure you have a valid cPanel license.


Do this after you have moved and migrated all of the accounts to the new server. Just navigate to the License Verification interface so you can confirm you have a valid license.