{"id":546,"date":"2021-07-23T12:32:36","date_gmt":"2021-07-23T12:32:36","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/how-to-move-all-cpanel-accounts-from-one-server-to-another\/"},"modified":"2021-07-23T12:32:36","modified_gmt":"2021-07-23T12:32:36","slug":"how-to-move-all-cpanel-accounts-from-one-server-to-another","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/how-to-move-all-cpanel-accounts-from-one-server-to-another\/","title":{"rendered":"How to Move All cPanel Accounts from One Server to Another"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\">\n<div id=\"versioned-article-header\">\n<p class=\"valid-version-info\"><em>Valid for versions 94 through the latest version<\/em><\/p>\n<\/div>\n<div id=\"version-select-group\" aria-label=\"select versions\">\n<h4>Version:<\/h4>\n<h4>82<\/h4>\n<h4>90<\/h4>\n<h4>94<\/h4>\n<\/div><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>This tutorial explains how to migrate your cPanel accounts, SSL certificates, and main server IP address from one server to another. Typically, you would do this when you need to replace your server.<\/p>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n<p>Your websites will likely experience downtime during this process.<\/p>\n<\/p><\/div>\n<\/div>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>This procedure assumes that your server\u2019s IP addresses are portable, and that you can migrate them from the old server to the new server. If you use a third-party data center or hosting provider for your cPanel &#038; WHM server, contact them to confirm that you can migrate your IP addresses.<\/p>\n<\/p><\/div>\n<\/div>\n<h2 id=\"migrate-your-cpanel-accounts\">Migrate your cPanel accounts<\/h2>\n<h3 id=\"install-cpanel-whm-on-your-new-server\">Install cPanel &#038; WHM on your new server<\/h3>\n<p>Before you transfer the accounts, install cPanel &#038; WHM on your new server. To do so, follow the steps in our Installation Guide.<\/p>\n<p>During the installation process, select a hostname and main IP address for the new server.<\/p>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>\n<p>The replacement cPanel &#038; WHM server should contain identical software to the original server. This includes MySQL\u00ae or MariaDB\u00ae, PHP, PHP extensions, Apache\u00ae, Apache extensions, and other software options. If you do <strong>not<\/strong> use the same version of MySQL or MariaDB on the new server, you may encounter serious errors. If you wish to update any of the software on the server, we strongly recommend that you perform the transfer first and then perform any updates.<\/p>\n<\/li>\n<li>\n<p>You <strong>must<\/strong> select a main IP address that differs from your old server.<\/p>\n<\/li>\n<li>\n<p>Select the same hostname, shared IP address, and nameservers that your old server uses. The system configures the DNS zone files of restored accounts with those settings. You can do this in WHM\u2019s <em>Basic WebHost Manager Setup<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Server Configuration &gt;&gt; Basic WebHost Manager Setup<\/em>).<\/p>\n<\/li>\n<li>\n<p>Make certain that you copy your cPanel accounts\u2019 Apache configuration to the new server. To do so, follow the steps in our Customize Your Installation documentation.<\/p>\n<\/li>\n<\/ul><\/div>\n<\/div>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>\n<p>cPanel &#038; WHM requires a valid license. If this is a new installation, you can activate a free 15-day trial license.<\/p>\n<\/li>\n<li>\n<p>In order to activate a new license, you <strong>must<\/strong> have a cPanel Store account with a verified email address.<\/p>\n<\/li>\n<li>\n<p>The migration process will transfer your permanent license to the new server.<\/p>\n<\/li>\n<\/ul><\/div>\n<\/div>\n<h3 id=\"copy-all-accounts-to-the-new-server\">Copy all accounts to the new server<\/h3>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n<p>If you do <strong>not<\/strong> use a SNI-capable operating system, make <strong>certain<\/strong> to copy all SSL certificates before you transfer accounts between servers. SSL certificates and keys reside in the <code>\/etc\/ssl\/<\/code> directory.<\/p>\n<\/p><\/div>\n<\/div>\n<p>After you install cPanel &#038; WHM on your new server, copy each account from your old server to your new server. To move all of your accounts from one server to another, follow the steps in WHM\u2019s <em>Transfer Tool<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Transfers &gt;&gt; Transfer Tool<\/em>).<\/p>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>\n<p>If you <strong>only<\/strong> possess user credentials and do <strong>not<\/strong> have <code>root<\/code> access or privileges, use WHM\u2019s <em>Transfer or Restore a cPanel Account<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Transfers &gt;&gt; Transfer or Restore a cPanel Account<\/em>).<\/p>\n<\/li>\n<li>\n<p>In cPanel &#038; WHM version 90 and later, WHM\u2019s <em>Transfer Tool<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Transfers &gt;&gt; Transfer Tool<\/em>) allows you to use the <em>Live Transfer<\/em> feature. This feature reduces downtime during transfers between cPanel &#038; WHM servers. <strong>Only<\/strong> use this feature if the source server controls the authoritative name servers for the domain.<\/p>\n<\/li>\n<li>\n<p>WHM\u2019s <em>Transfer Tool<\/em> interface allows you to transfer the following service configurations:<\/p>\n<\/li>\n<li>\n<p>Backups<\/p>\n<\/li>\n<li>\n<p>cPanel &#038; WHM (<code>whmconf<\/code>)<\/p>\n<\/li>\n<li>\n<p>EasyApache<\/p>\n<\/li>\n<li>\n<p>Exim<\/p>\n<\/li>\n<li>\n<p>MySQL and PostgreSQL databases<\/p>\n<\/li>\n<li>\n<p>User interface themes<\/p>\n<\/li>\n<\/ul>\n<p>Make <strong>certain<\/strong> that you transfer each account\u2019s EasyApache configurations, or your websites may experience issues.<\/p>\n<\/p><\/div>\n<\/div>\n<h3 id=\"shut-down-your-old-server\">Shut down your old server<\/h3>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n<p>Before you begin Step 3, if your old server belongs to a DNS cluster, delete the DNS clusters in WHM\u2019s <em>DNS Cluster<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Clusters &gt;&gt; DNS Cluster<\/em>).<\/p>\n<\/p><\/div>\n<\/div>\n<p>After you copy your accounts to the new server, you can shut down your old server.<\/p>\n<h3 id=\"change-the-new-server-main-ip-address-to-the-old-server-ip-address\">Change the new server main IP address to the old server IP address<\/h3>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>\n<p>If you purchased your license directly from cPanel, L.L.C., or a third-party license provider, you must perform this step.<\/p>\n<\/li>\n<li>\n<p>We recommend that you do <strong>not<\/strong> perform this step if the following conditions are true:<\/p>\n<ul>\n<li>You wish to migrate your accounts to a new server with a new hosting provider.<\/li>\n<li>You purchased your cPanel license from your former hosting provider.<\/li>\n<\/ul>\n<\/li>\n<\/ul><\/div>\n<\/div>\n<p>After you shut down your old server, change the new server\u2019s main IP address to the IP address of your old server. Perform this action via the command line in a local session. A local session allows you to make changes, restart the network service, and remain connected to the server.<\/p>\n<p>To change the server\u2019s main IP address, perform the following steps:<\/p>\n<ol>\n<li>\n<p>Open the <code>\/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/code> file.<\/p>\n<\/li>\n<li>\n<p>Edit the <code>IPADDR<\/code> and <code>GATEWAY<\/code> lines to use the IP address and gateway of your old server.<\/p>\n<\/li>\n<li>\n<p>Open the <code>\/etc\/ips<\/code> file with a text editor.<\/p>\n<\/li>\n<li>\n<p>Add your old server\u2019s primary IP address, net mask, and gateway to the file.<\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>Remove the new server\u2019s primary IP address from this file.<\/p>\n<\/p><\/div>\n<\/div>\n<\/li>\n<li>\n<p>Restart the network service with the following commands:<\/p>\n<ul>\n<li>\n<p>For CentOS 6 and earlier, CloudLinux\u2122 6 and earlier, Red Hat\u00ae Enterprise Linux\u00ae (RHEL) 6 and earlier, and Amazon\u00ae Linux, run the <code>service network restart<\/code> command.<\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>Amazon Linux <strong>always<\/strong> runs in a NAT configuration.<\/p>\n<\/p><\/div>\n<\/div>\n<\/li>\n<li>\n<p>For CentOS 7 and 8, CloudLinux 7 and 8, AlmaLinux 8, and RHEL 7, run the <code>systemctl restart network<\/code> command.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Run the <code>\/scripts\/mainipcheck<\/code> command to add the IP address to the <code>\/var\/cpanel\/mainip<\/code> file.<\/p>\n<\/li>\n<li>\n<p>Run the <code>\/scripts\/fixetchosts<\/code> command to add the IP address and hostname of your server to the <code>\/etc\/hosts<\/code> file.<\/p>\n<\/li>\n<\/ol>\n<h3 id=\"confirm-that-you-possess-a-valid-cpanel-license\">Confirm that you possess a valid cPanel license<\/h3>\n<p>After you move all of your accounts to your new server, confirm that you possess a valid cPanel license. To do this, navigate to our License Verification interface.<\/p>\n<h3 id=\"change-the-ip-address-of-all-accounts-to-the-correct-ip-address\">Change the IP address of all accounts to the correct IP address<\/h3>\n<p>After you transfer the accounts to the new server, the system may have set the IP addresses of the accounts to the new server\u2019s original main IP address. You must change each account\u2019s IP address to the current IP address with WHM\u2019s <em>IP Migration Wizard<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; IP Functions &gt;&gt; IP Migration Wizard<\/em>).<\/p>\n<h3 id=\"add-the-new-server-to-the-dns-cluster\">Add the new server to the DNS cluster<\/h3>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>If your server does <strong>not<\/strong> belong to a DNS cluster, proceed to the next step.<\/p>\n<\/p><\/div>\n<\/div>\n<p>To add the new server to the DNS cluster, perform the following steps:<\/p>\n<ol>\n<li>\n<p>Navigate to WHM\u2019s <em>DNS Cluster<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Clusters &gt;&gt; DNS Cluster<\/em>).<\/p>\n<\/li>\n<li>\n<p>Select <em>Enable DNS Clustering<\/em>.<\/p>\n<\/li>\n<li>\n<p>Click <em>Change<\/em>.<\/p>\n<\/li>\n<li>\n<p>Click <em>Return to Cluster Status<\/em>.<\/p>\n<\/li>\n<li>\n<p>Select the server to add to the DNS cluster from the <em>Add a new server to the cluster<\/em> menu.<\/p>\n<\/li>\n<li>\n<p>Click <em>Configure<\/em>.<\/p>\n<\/li>\n<\/ol>\n<h3 id=\"reinstall-all-ssl-certificates\">Reinstall all SSL certificates<\/h3>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>Proceed to the next step if your server meets the following conditions:<\/p>\n<ul>\n<li>The accounts on your server do not use SSL certificates from a Certificate Authority.<\/li>\n<li>Both of your servers use an SNI-capable operating system.<\/li>\n<\/ul><\/div>\n<\/div>\n<p>To upload an existing SSL certificate to your server, perform the following steps:<\/p>\n<ol>\n<li>\n<p>Navigate to WHM\u2019s <em>Install an SSL Certificate on a Domain<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; SSL\/TLS &gt;&gt; Install an SSL Certificate on a Domain<\/em>).<\/p>\n<\/li>\n<li>\n<p>Paste the certificate into the text box, or click <em>Fetch<\/em> to upload a <code>.crt<\/code> file.<\/p>\n<\/li>\n<li>\n<p>Click <em>Submit<\/em> to install the certificate.<\/p>\n<\/li>\n<\/ol><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Valid for versions 94 through the latest version Version: 82 90 94 Overview This tutorial explains how to migrate your cPanel accounts, SSL certificates, and main server IP address from one server to another. Typically, you would do this when you need to replace your server. Warning: Your websites will likely experience downtime during this &hellip;<\/p>\n","protected":false},"author":1,"featured_media":547,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/546"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=546"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/546\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/547"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}