From cPanel
Transfer cPanel accounts to ScalPanel over SSH from a WHM server or from an uploaded account archive.
ScalPanel imports cPanel accounts from the pkgacct archive (cpmove-USER.tar.gz) that WHM's own transfer and backup tools use. You can let ScalPanel fetch the archives from a WHM server over SSH, or upload one archive yourself.
Before you start
- You are a provider administrator on ScalPanel. Resellers cannot run transfers.
- Create the reseller and the package the accounts will go to, unless they go straight under the provider.
- Make sure no account on this ScalPanel already uses the account's main domain. The transfer stops at that account otherwise.
- Lower the DNS TTL on the cPanel server a day or two ahead. See Migration.
Option 1: from a cPanel server over SSH
This is the recommended way. It lists every account on the server and lets you pick some or all of them.
You need SSH access as root to the WHM server, with a password or a private key. ScalPanel runs only these commands on it: whmapi1 listaccts to list the accounts, /scripts/pkgacct to pack each chosen account into a private folder under /root, cat to copy the archive, and rm to delete the folder. Account names are checked before they are used in a command.
- Open Accounts → Transfers in the admin panel and choose New transfer.
- Choose the From a cPanel server tab.
- Enter the Server, SSH port and SSH user, and a Password or a Private key (instead of the password).
- Choose Check the server. ScalPanel shows the server's SSH key fingerprint.
- Compare it with the server's own, for example with
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pubon the server. Tick This is the server's key. - Choose Connect and list accounts.
- Under Choose the accounts, pick the Owner (the provider's direct customers or a reseller) and a Package.
- Tick the accounts, or All accounts, and choose Transfer.
The password or key is stored encrypted while the transfer runs and deleted when it ends.
Option 2: upload an account archive
- Make the archive on the cPanel server, for example with
/scripts/pkgacct USER, or take a cPanel full backup. - Open Accounts → Transfers, choose New transfer and then Upload an archive.
- Set Made by to cPanel, choose the file and select Upload.
- Choose the owner and package, then start the transfer.
An uploaded archive holds one account.
Note: An uploaded archive may be up to 50 GiB, and the upload may take up to 72 minutes (about 100 Mbit/s for the largest). ScalPanel 0.1.34 and older accepted only 10 MB through the browser.
What is converted
| cPanel | On ScalPanel |
|---|---|
| Main domain | The account's first website, with the cPanel user name when it is free |
| Addon domains and subdomains | One website per document root |
| Parked domains (aliases) | Extra domains on the main website |
| Document root files | The website's public folder |
| MySQL databases | MariaDB databases named <prefix>_<name>, with their data |
| MySQL users | Users with full or read-only grants and new passwords |
| DNS zones | Records added to ScalPanel's zones |
| Cron jobs | Cron jobs of the matching website |
| Email accounts | Mailboxes with their quota, password and mail |
Forwarders (va/ files) | Forwarders |
| SSL certificates | Installed when valid and matching their key |
Some details:
- Paths:
/home/USER/...in cron commands is rewritten to the website's path. cPanel PHP binaries such as/opt/cpanel/ea-php82/root/usr/bin/phpbecomephp. - **
.htaccess:** cPanel's PHP handler lines are removed, because ScalPanel picks the PHP version itself. The report counts the files changed. - Account sign-in: the account owner gets a new password, shown in the report.
- WordPress:
wp-config.phpfiles are rewritten to the new database name, user and password. - Mail passwords: SHA-512, SHA-256 and bcrypt hashes are kept, so users sign in as before. Mailboxes with an MD5-crypt hash get a new password, shown in the report.
Known limits
- PostgreSQL databases are not transferred. The report says so. Export them with
pg_dumpand import them by hand. - PHP version and PHP settings are not carried over. Websites start on this server's default PHP version.
- Files outside document roots, such as other folders of the home directory, are not copied. Single files over 200 MiB are left out.
- Autoresponders, FTP accounts, mail filters and the catch-all address are not transferred. Forwarders to pipes, files,
:fail:or:blackhole:are left out. - Resellers are not transferred. Create the reseller here first and choose it as the owner.
- SPF, DKIM, DMARC and MX records are replaced by ScalPanel's own.
- Fetching works only with a WHM server and root access. A cPanel user's own login is not enough.
After the transfer
Read each account's report on the transfer page. Pass on the new credentials, fix the items under Check these, and then switch DNS. See what to check afterwards.