Why Migrate WHM to WHM?
Migrating a server from WHM to WHM isn't just a file copy โ it's infrastructure orchestration. If you're moving cPanel accounts between servers (for performance, security, compliance, or consolidation), the process must protect DNS, SSL, email, databases, permissions, SEO, and ensure zero downtime.
At Hatty AI, we migrate WHM environments regularly for agencies, eCommerce brands, and compliance-driven organizations. Below is the exact framework we use to perform clean, production-grade WHM โ WHM migrations.
Common reasons to migrate include:
- Upgrading to a newer server (AlmaLinux 9, better CPU/RAM)
- Moving from shared/dedicated to VPS
- Escaping overloaded servers
- Reorganizing multi-account infrastructure
- Compliance hardening (NIST, HIPAA, CMMC alignment)
- Consolidating client accounts under one master WHM
โ ๏ธ If you're running multiple WordPress + WooCommerce sites, getting this wrong can mean broken email, payment failures, and lost revenue.
Phase 1: Pre-Migration Planning
Before touching anything, validate these items:
1. Confirm WHM Version Compatibility
Both servers should run:
- Compatible cPanel versions
- Compatible OS (AlmaLinux 8 โ AlmaLinux 9 is fine)
- Matching PHP versions
In WHM:
WHM โ Server Information โ Apache Version / PHP Version
2. Lower DNS TTL (Critical)
24 hours before migration, lower TTL in DNS to:
300 seconds
This ensures fast propagation when switching IPs later.
3. Full Backups
On the source WHM:
WHM โ Backup โ Generate Full Backup
Or for specific accounts:
WHM โ Transfers โ Copy an Account from Another Server
Phase 2: The Proper WHM to WHM Migration Method
There are two ways to migrate:
Method 1 (Recommended): WHM Transfer Tool
This is the cleanest and safest method.
On the NEW Server:
WHM โ Transfers โ Transfer Tool
Enter:
- Source server IP
- Root credentials or SSH key
- Select accounts to migrate
Enable:
- Express Transfer (optional)
- Copy reseller privileges (if applicable)
Click Copy. WHM will automatically migrate:
- Home directories
- Databases
- Email accounts
- SSL certificates
- DNS zones
- Cron jobs
- Subdomains
- Addon domains
โ This is the preferred enterprise method.
Method 2: Manual Backup & Restore (Less Ideal)
From source server:
/scripts/pkgacct username
Transfer the backup file to new server:
/scripts/restorepkg username
This works but requires more oversight.
Phase 3: Testing Before DNS Switch (Zero Downtime Strategy)
Never switch DNS blindly.
Use the Hosts File Method
On your local machine:
Windows:
C:\Windows\System32\drivers\etc\hosts
Add:
NEW_SERVER_IP domain.com
NEW_SERVER_IP www.domain.com
Now only YOU see the new server.
Test:
- WordPress login
- WooCommerce checkout
- Forms
- Email sending
- SSL status
- API integrations (Stripe, Mailgun, etc.)
๐ก This prevents downtime and SEO damage.
Phase 4: SSL & AutoSSL Validation
On new WHM:
WHM โ Manage AutoSSL โ Run AutoSSL
Ensure:
- All domains show valid certificates
- No mixed content errors
- No redirect loops
Phase 5: DNS Cutover
When fully validated, update DNS A records:
domain.com โ NEW_SERVER_IP
www โ NEW_SERVER_IP
If using external DNS (Cloudflare, GoDaddy, etc.), update there.
Because TTL was lowered earlier, propagation should complete within minutes.
Phase 6: Post-Migration Validation Checklist
After propagation:
- โ Remove hosts file entry
- โ Test from mobile network
- โ Verify email delivery
- โ Confirm SPF/DKIM/DMARC
- โ Check cron jobs
- โ Monitor error logs
- โ Run Google Search Console inspection
- โ Confirm sitemap loads
- โ Verify robots.txt
Common Migration Pitfalls (Avoid These)
โ Using mod_userdir (~username)
Breaks WordPress sessions and SSL.
โ Forgetting Mail Routing
If MX isn't moved correctly, email breaks.
โ Not Checking PHP Versions
Different PHP builds can break plugins.
โ Forgetting to Reissue AutoSSL
Old certificates won't automatically carry over if DNS changed.
Enterprise-Level WHM Migration Enhancements
At Hatty AI, we add:
- Pre-migration performance benchmarking
- Database optimization during move
- Malware scanning before restoration
- Hardened firewall reconfiguration
- ModSecurity rules review
- Automated Mailgun / SMTP validation
- AI-based log anomaly scanning
For WooCommerce clients, we also:
- Put checkout in maintenance briefly
- Freeze order processing during final sync
- Perform final DB delta validation
When NOT to Use WHM to WHM
Consider alternatives if:
- You're moving to Kubernetes or containerized hosting
- You need decoupled architecture (React + API)
- You want object storage (S3) offloading
- You're scaling to multi-region infrastructure
In those cases, migration strategy changes significantly.
Final Thoughts from Hatty AI
WHM to WHM migration is straightforward โ but only if executed with a proper process.
The key principles:
- Plan
- Lower TTL
- Transfer using WHM tools
- Test via hosts file
- Validate SSL
- Cut DNS
- Monitor
Done correctly, users will never know the server changed.
๐ Continue Reading
How to Set Up GitHub with VPS Hosting via WHM & cPanel โ Deploy your pipeline to a VPS with SSH keys and cPanel Git Version Control.
Managed Hosting Services โ Learn about our WordPress maintenance and VPS optimization services.
Need Help Migrating Your WHM Server?
Fill out the form below and our team will reach out to discuss your migration needs โ from single-account moves to full multi-server consolidation.
Ready to Migrate Without Downtime?
Hatty AI handles full-stack WHM migrations including WordPress, WooCommerce, multi-account clusters, compliance-ready environments, and AI monitoring.
Schedule a Strategy CallRelated: VPS Hosting Setup Guide ยท Email Deliverability Guide ยท Managed IT Services
