cPanel’s per-account licensing makes running many small sites on it expensive, so plenty of server owners move to free panels like aaPanel, CyberPanel, CloudPanel, or HestiaCP. The move is safe if you do it in the right order: audit everything on the old server, back up, build the new panel in parallel, move sites one at a time, test each one before you touch DNS, and keep the old server alive as a rollback net. This guide walks through the full playbook with the actual commands involved.
Step 1: Audit what actually lives on your cPanel server
Migrations break on the thing you forgot. Before anything else, make a list of every account, addon domain, subdomain, email address, cron job, SSL certificate, custom PHP version, remote MySQL user, and DNS zone on the cPanel server. In WHM, go to Account Information > List Accounts and export the list. On the command line, check cron jobs per user with crontab -l -u username and note PHP versions with /usr/local/bin/php -v on each account if versions differ. Write down which sites depend on which PHP extensions (ionCube, imagick, redis) so you can install them on the new server too.
Step 2: Lower your DNS TTL 24 hours before the move
DNS caching is the biggest source of “downtime” in migrations. Reduce the TTL on every domain you are moving to 300 seconds and wait at least as long as the old TTL before starting. With a 300-second TTL, a failed cutover can be rolled back in minutes instead of hours. You can raise the TTL back to 3600 or 86400 once the move is stable.
Step 3: Take full backups on the cPanel side
Run a full backup for every account in WHM > Backup > Backup/Restore, or from SSH:
/scripts/pkgacct username
This produces a /home/cpmove-username.tar.gz file containing files, databases, email, and settings. For extra safety, also dump databases individually:
mysqldump -u root -p dbname > /root/dbname-backup.sql
Copy every backup off the server with scp or rsync to your local machine or the new VPS. Then verify: open one archive and confirm the homedir folder and the mysql.sql file are inside and not empty. A backup you never tested is not a backup.
Step 4: Install the free panel on the new server
Provision a fresh VPS with enough disk and RAM for your workload. Install the panel before moving any data. A few proven free options:
| Panel | Why people pick it | Watch out for |
|---|---|---|
| aaPanel | Simple UI, one-click LNMP/LAMP stacks, wide plugin library | Open-source edition lags the paid one in some add-ons |
| CyberPanel | OpenLiteSpeed built in, ships a cPanel account importer | Heavier on RAM; .htaccess support is partial |
| CloudPanel | Clean UI, fast Nginx + PHP-FPM stacks | No built-in email server; pair it with an external mail service |
| HestiaCP | Lightweight fork of VestaCP, includes mail, DNS, and firewall | Sparser UI, fewer one-click installers |
Install the panel’s stack to match your sites: the same major PHP version, the same web server family (Apache or Nginx/LiteSpeed) where possible, and the extensions you noted in Step 1. Open only the ports you need (22, 80, 443, and the panel port) in the firewall and put a Let’s Encrypt certificate on the panel login itself. If the move is also a chance to rethink the OS, compare AlmaLinux vs Ubuntu for hosting without cPanel before you provision.
Step 5: Transfer the websites
If your panel ships a cPanel importer (CyberPanel has one for remote account transfer), use it for the bulk move, then verify each site by hand. For a manual transfer:
- Create the domain in the new panel with the same document root layout.
- Copy the files: rsync -avz -e ssh olduser@old-server:/home/olduser/public_html/ /new/docroot/
- Recreate each database and user with the same name and password as on cPanel, then import the dump: mysql -u root -p dbname < dbname-backup.sql
- Set the site’s PHP version to match the old one and install any missing extensions.
- Fix ownership and permissions: folders 755, files 644, owned by the panel’s web user (for example www on aaPanel).
- If the app stores an absolute path (some WordPress plugins do), update it; otherwise leave configs untouched.
Step 6: Move email without losing a single message
Create the same mailbox names on the new server (or in your external mail service) with the same passwords. Then copy existing mail over with imapsync, one account at a time:
imapsync –host1 old-server-ip –user1 [email protected] –host2 new-server-ip –user2 [email protected]
Do not change MX records yet. Mail keeps arriving at the old server while you work. After cutover, run imapsync once more to catch messages that landed during propagation, then retire the old mailboxes.
Step 7: Test everything before you touch DNS
This step is what makes the migration downtime-free. Point your local machine at the new server by adding a line to your hosts file:
203.0.113.10 example.com www.example.com
(Use your new server’s real IP.) Then browse the site exactly as a visitor would: homepage, login, contact form, checkout, file uploads. Check the PHP version with a phpinfo() page and confirm the SSL certificate serves correctly. For WordPress sites, log into /wp-admin and verify media loads and plugins activate. Remove the hosts entry only after the live cutover, so you keep testing against the new server while DNS settles.
Step 8: Flip the DNS and watch it closely
When every site passes testing, update the A (and AAAA, if you use IPv6) records to the new server’s IP and point MX at the new mail server. Propagation usually completes within the TTL window you set in Step 2, but some resolvers lag, so keep the old server online for at least 72 hours: old mail still arriving there gets caught by your final imapsync run, and straggler visitors still get served. Watch the old server’s access logs; when traffic drops to near zero, you know the cutover is complete.
Step 9: Post-migration checklist
- Reissue or renew Let’s Encrypt certificates for every domain on the new panel.
- Recreate every cron job with the same schedule and user.
- Confirm redirects, canonical URLs, and sitemaps still resolve.
- Verify outgoing mail (contact forms, order notifications) reaches inboxes, not spam.
- Check disk usage and set up the panel’s scheduled backups so this never has to be manual again.
- Raise the DNS TTL back to 3600 or higher.
Your rollback plan
If a site breaks after cutover, rollback is just a DNS change away: point the A record back at the old server and wait out the 300-second TTL. Keep the cPanel backups for at least 30 days and do not cancel the old server or the cPanel license until the next billing cycle. A boring, reversible migration is a successful one.
Moving from cPanel to a free panel is not really about the panel at all. It is about the order of operations: audit, back up, build in parallel, test before DNS, cut over, verify, and only then decommission. Follow that sequence and your visitors will never notice the server changed.