For cPanel & WHM version 68
(WHM >> Home >> Transfers >> Transfer Tool )
This interface copies multiple accounts from a remote server to your cPanel & WHM server. To transfer accounts, you must obtain the following:
- SSH access to the remote server.
root-level privileges with the
- Do not shut down or restart any processes on either server during the transfer and restoration process.
- The Transfer Tool feature does not transfer the Domain Name System (DNS) zone templates. If custom DNS zone templates exist on the source server, the system ignores these zone templates when it recreates the account on the destination server. For more information, read the transfer process section below.
- Do not use the
skip-name-resolveoption in your server's MySQL configuration. This option can cause problems on any server. It will create more problems on remote MySQL servers during account transfers.
- The Transfer Tool feature requires MySQL® or a MySQL-compatible database (for example, Percona or MariaDB) on the target server to function properly.
- If you experience problems with session timeouts, increase the number of seconds in the Number of seconds an SSH connection related to an account transfer may be inactive before timing out setting in the System section of WHM's Tweak Settings interface (WHM >> Home >> Server Configuration >> Tweak Settings).
- If one of the accounts that you wish to transfer uses Microsoft® FrontPage® on the remote server, we strongly recommend that you disable FrontPage for that account before you attempt to transfer the account. cPanel & WHM version 11.46 and later does not support FrontPage, and the restoration process does not restore FrontPage-specific files and directories.
- To transfer IP addresses from one server to another, use WHM's IP Migration Wizard interface (WHM >> Home >> IP Function >> IP Migration Wizard).
Important note about account transfers from Plesk
To transfer accounts from Plesk, first change any forwarded domains to physical hosting accounts. To do this, run the following command as the
example.comrepresents the forwarding domain.
examplerepresents the new account's username.
127.0.0.1represents the new account's IP address.
12345luggagerepresents the new account's password.
If you need to convert several forwarding domains into hosting accounts, open a support ticket and our migration team will contact you.
How to transfer and restore multiple accounts
Remote server information
This section of the Transfer Tool interface allows you to specify information about the server from which to transfer accounts.
- In the Remote Server Address text box, enter an IP address or a Fully Qualified Domain Name (FQDN).
- IP address example —
FQDN example —
In this case, the FQDN does not require the trailing dot.
- IP address example —
In the Remote SSH port text box, specify the port to use.
The default value for SSH is port
In this section of the Transfer Tool interface, specify the authentication method with which to log in to the remote server.
To specify an authentication method, perform the following steps:
Select whether to log in as the
rootuser or with a specific username.
sshd_configfile on the remote server, you must log in as a user other than the
rootuser and then escalate to the
- If you selected User under Login, perform the following actions:
- Enter the remote account's username in the Username text box.
- Enter the remote account's password in the Password text box.
- Use the Authentication Method menu to specify whether to use a password or an SSH public key to authenticate to the remote server.
- If you select Password, enter the password for the account in the Password text box.
If you select SSH Public Key, select the key to use during authentication. Make certain that you installed the appropriate key in WHM's Manage root's SSH Keys interface (WHM >> Home >> Security >> Manage root's SSH Keys).
If you encrypted your account's SSH public key, enter the SSH Key Passphrase.
- If you select User under Login, select a root escalation method under the Root Escalation Method heading.
- If you select su for the Root Escalation Method, enter the
rootpassword in the Root Password text box.
- If you select su for the Root Escalation Method, enter the
In this section of the Transfer Tool interface, select whether to use the Restricted Restore feature or copy reseller privileges.
In this section of the Transfer Tool interface, select advanced options for the transfer. Click Show to display the list of options.
To select the advanced options, perform the following steps:
- From the Remote Server Type menu, select the web control panel that the remote server runs. Choose from the following options:
- Auto Detect
- cPanel & WHM
- Ensim (Parallels Pro)
Select Unencrypted to use an unencrypted session to transfer the files.
Select Compressed Transfers to compress the files during the rsync process when the remote server transfers the files between the source and destination servers.
This option does not affect the package account function, which creates a gzip archive of the user's account on the source server.
Select Low Priority to use less CPU and input/output (I/O) on the remote server.
This option reduces the impact on performance on the remote server, but increases the duration of the transfer session.
Select Use Incremental Backups speed-up to decrease the amount of time that the system uses to package the account on the source server. If a daily incremental backup exists, WHM uses that backup as a starting point. The system then updates the package before transfer.
Select Use custom account packaging modules from /var/cpanel/lib/Whostmgr/Pkgacct to use packaging scripts in that directory.
The system does not create the
/var/cpanel/lib/Whostmgr/Pkgacctdirectory by default. You must create the
/var/cpanel/lib/Whostmgr/Pkgacctdirectory before you select this option, if the directory does not already exist.
cPanel & WHM always prioritizes custom restore modules in the
/var/cpanel/perl/Whostmgr/Transfers/Systemsdirectory over the cPanel-provided modules in the
/var/cpanel/perl/Whostmgr/Transfers/Systemsdirectory stores any custom modules that you create.
/usr/local/cpanel/Whostmgr/Transfers/Systemsdirectory stores the modules that ship with cPanel & WHM.
Specify the number of CPU processes (threads) for the transfer session in the Number of Transfer Threads text box.
The system allows you to enter a maximum of five transfer threads.
Specify the number of CPU processes (threads) for the restore session the Number of Restore Threads text box.
The system allows you to enter a maximum of five restore threads.
Specify the number of seconds that the transfer session remains open before it times out in the Transfer Session Timeout text box.
If you change the default in the Transfer Session Timeout text box, it will only apply to the current session. You must enter a new value each time that you run a transfer. You can permanently change the value in WHM's Tweak Settings interface (WHM >> Home >> Server Configuration >> Tweak Settings).
Fetch account list
After you make your selections, click Fetch Account List. A new interface will appear.
The Account List interface
The top of the Account List interface displays the hosting software and version of the remote server. If any of this information appears incorrect, click Reanalyze Remote Server.
Below the remote server information, the interface displays if any available IP addresses exist.
If no available IP addresses exist on the target server, accounts on the remote server that use a dedicated IP address will not transfer.
In this section of the Account List interface, select the configurations on the source server that you wish to copy over to a destination server.
- You can transfer configurations for the following configurations:
- cPanel & WHM (whmconf),
- MySQL® and PostgreSQL® databases
User Interface Themes.
When you transfer an account that runs EasyApache 3 (EA3), the migration script converts the account's EA3 profile to an EasyApache 4 (EA4) profile on the destination cPanel & WHM server.
- For more information about the files that the system transfers for each configuration, read our The cpconftool Script documentation.
To select your desired configurations, perform the following steps:
- Click Fetch Account List. The system displays the source server's information.
- Click Show next to Service Configurations to reveal all of the available configurations on your server. The Configuration Name and Analysis columns display the available configurations and versions.
Select the configurations that you wish to transfer to your local server.
- The system displays warning messages in yellow and blocker messages in red text.
- If you receive a blocker message, the system disables the EasyApache option.
Click Copy. The system will display the progress interface.
- You cannot click Copy until you select a configuration to transfer.
- The Transfer column displays the status of all configurations from the source server.
- The Restore column displays the status of all configurations to the destination server.
- The system displays any error messages in yellow and warning messages in red text.
The summary bar displays the transferred or restored configurations.
Restore the PHP-FPM
.yaml configuration file
A MultiPHP user's PHP-FPM setting does not transfer. When you use this interface, the system will transfer the PHP-FPM
.yaml configurations, but will not restore it. This is due to an undetermined status of PHP and FPM services. Instead, the system copies the PHP-FPM
.yaml configuration file to the
To restore the PHP-FPM
.yaml configuration file manually, perform the following steps:
- Rename the file to the
Run the following command:
The system restores your account's PHP-FPM
CentOS, Red Hat®, and CloudLinux 5 Migrations
On March 31, 2017, Red Hat® will deprecate all CentOS 5 systems. cPanel, Inc. will no longer provide maintenance and security updates for CentOS 5 systems. The Transfer Tool interface can assist you in your migration from CentOS 5 systems to a higher version of CentOS. We strongly recommend that you migrate to a CentOS 7 server.
- Contact your hosting provider and acquire a CentOS 7 server to which to migrate.
- Log in to WHM as the
rootuser and navigate to the Transfer Tool interface.
Perform the steps in the Configuration section above.
We strongly recommend that you migrate your accounts and configurations separately. Migrate your configurations first.
Verify that your server operates as expected. For more information on one method to do this, read our Service Manager documentation.
Use the Transfer Tool interface to migrate the desired accounts.
In this section of the Account List interface, select the packages on the remote server to copy to your local server.
How to copy packages
The Transfer Tool feature transfers features lists for the packages that you select.
To copy a package, perform the following steps:
- Select the packages to copy in the table under the Packages heading.
- Select the checkbox in the table header to select all of the packages from the remote server.
- Use the Search text box to filter the list of packages.
- Use the navigation controls to page through the list of packages.
- Click a column header to sort the packages by that column .
- The restore system attempts to extract the package information from the
cpmovefile. If the package does not already exist on the target system, the system creates the package and assigns it to the account. If the system cannot create the package, the system assigns the default package to the account.
- If the feature list for the account exists on the target system, the system assigns it to the account. If the feature list does not exist, the system assigns the default feature list to the account.
In this section of the Account List interface, search for and select accounts to transfer to your local server.
How to copy accounts
To toggle an option for all accounts, select the checkbox at the top of the appropriate column in the table header.
To copy accounts, perform the following steps:
- Select the accounts to copy in the table under the Accounts heading.
- To copy all of the accounts on the remote server, select the checkbox at the top of the column in the table header.
- Use the Search text box to filter the list of accounts.
- Use the navigation controls to page through the list of packages.
- Click a column header to sort the accounts by that column.
Specify the copied account's new username and enter the new username in the User text box.
The User text boxes use the following colors as warning indicators:
- Red indicates that the username exists on this server, and the account will fail to copy if you do not change the username or select Overwrite.
- Yellow indicates that the account has a dedicated IP address on the remote server.
- Green indicates that the account does not already exist.
Select the accounts to which the system will assign dedicated IP addresses under the Dedicated IP Address heading.
Warning:The interface does not allow you to assign more dedicated IP addresses than the number of available IP addresses on your server. If you select an account with a dedicated IP address on the remote server but an available IP address does not exist on your server, the transfer fails.
- Select the accounts that will transfer their home directories under the Copy Home Directory heading.
Use the Filter text box to filter the list of accounts by the Domain, User, or Reseller columns.
Accounts will retain their mailbox format settings from the source server. For example, if an account uses maildir format on the source server, it will use maildir format on the target server.
Select the accounts that will retain their reseller privileges under the Copy Reseller Privileges heading.
This option is not available if you selected the Restricted Restore feature in the Security section of the previous interface.
- Select the accounts that will transfer their account databases under the Copy Databases heading.
Select the accounts that will transfer their bandwidth data under the Copy Bandwidth Data heading.
If you transfer an account from cPanel & WHM version 11.50 to an earlier version, the account loses its bandwidth data.
Select accounts for express transfer under the Express transfer heading.
For more information, read the Express transfer section of this document.
- If an account exists on the server, the Overwrite Account column displays a checkbox that allows you to transfer the account and overwrite all the data in the account.
- Click Copy.
After you click Copy, the Account Transfer interface will appear.
The transfer process
- In the steps below,
domainrepresents the name of a domain that you transferred.
- The system considers any two records with the same resource name and type to be duplicates.
MultiPHP user's PHP-FPM setting does not transfer. The system transfers the PHP-FPM
.yamlconfigurations, but will not place it in position due to the undetermined status of PHP and FPM services. Instead, the system copies the PHP-FPM
.yamlconfiguration file to the
filename.php-fpm.transferredfile. To restore this file manually, see Restore the PHP-FPM .yaml configuration file above.
When you use the Transfer Tool interface to transfer accounts, the system performs the following actions:
- The system creates the account.
The system compares the DNS zone file from the account's backup file with the template-generated zone file that the system generated during account creation.
The Transfer Tool feature does not transfer DNS zone templates. If custom DNS zone templates exist on the source server, the system ignores these zone templates when it recreates the account on the destination server.
- The system updates the SOA record to match the target server's zone templates and comments out the existing SOA record from the source server.
- The system updates
domainNS records to match the target server's zone templates and comments out any duplicate
domainNS records from the source server.
The system updates ftp.domain A, AAAA, and CNAME records to match the target server's DNS templates and comments out any identical
ftp.domainrecords from the source server.
cPanel & WHM uses the IP address in the destination server's
virtual-ftpzone template (usually, the server's main IP address) for virtual FTP when the account exists on a shared IP address.
The system checks whether the template-generated zone file uses an MX preference of
0, and then performs the following actions:
If the zone file's MX preference is
0and the zone file is
- If the zone file's MX preference is
0and the zone file is not
mail.$PRIMARY_DOMAIN(a non-standard mail configuration), the system merges the generated templates and comments out templates from the source server.
For example, when the zone template's MX record defines an external mail service, the system prefers that entry over the record in the backup.
The system comments out duplicate records.
- The system comments out CNAME records that conflict with any other records. If two or more CNAME records conflict, the system comments out all but the first CNAME record.
- The system increments the SOA serial number for the domain.
- The system updates records that reference the old IP address to use the account's new IP address.
- The system removes comments that are older than 30 days.
- The system updates CalDAV and CardDAV records to match the target server's DNS template.
- If the zone file contains an
$ORIGINdirective for an additional domain, the system will not update that additional domain's records.
- You can only use the Express transfers feature to transfer accounts between cPanel & WHM servers.
- Only use the Express transfers feature if the remote server controls the authoritative name servers for the domain. If the remote server does not control the authoratative nameservers for the domain and you use this feature, DNS will not resolve. This will cause your sites to experience downtime.
If you do not use the Express transfers feature when you transfer your accounts, you can use The swapip Utility to update the transferred accounts' nameserver records.
An express transfer performs the following actions on the remote server:
- Updates the account's A record to point to the destination server.
- Changes the domain's nameserver entry to point to the destination server.
- Updates the email routing configuration, so that mail arrives at the destination server.
Adds a redirect for the Account Moved page (
cgi-sys/movingpage.cgi) for the following file extensions:
- Suspends the transferred accounts on the source server. For more information, read our What Happens When You Suspend an Account documentation.
The system performs changes on the source server in the