Blog header background
    IT Services

    How to Migrate WHM to WHM the Right Way

    Hatty AI
    March 7, 2026
    18 min read
    ๐Ÿ–ฅ๏ธ

    Featured Article

    IT Services

    How to Migrate WHM to WHM the Right Way

    WHM-to-WHM migration done right. The exact framework Hatty AI uses for clean, production-grade server migrations.

    Hatty AI
    March 7, 2026
    18 min read

    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:

    1. Plan
    2. Lower TTL
    3. Transfer using WHM tools
    4. Test via hosts file
    5. Validate SSL
    6. Cut DNS
    7. 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 Call

    Related: VPS Hosting Setup Guide ยท Email Deliverability Guide ยท Managed IT Services

    ๐Ÿ› ๏ธ Need Help Setting This Up?

    Our team can handle the entire setup for you โ€” from S3 bucket creation to CloudFront configuration and CMS integration.

    Frequently Asked Questions

    ๐Ÿช We Value Your Privacy

    We use cookies and similar technologies to enhance your experience, analyze site traffic, and understand where our visitors are coming from. You can customize your preferences at any time.