Skip to content

Whole-server migration with whmtransfer — the parts the wizard does not warn you about

WHM Transfer Tool moves accounts, packages, resellers, and DNS zones between servers. The catch is what it does not move — and what it silently re-numbers along the way.

You’re moving a thousand-account WHM box to a new chassis. The WHM Transfer Tool is the obvious answer — it ships with cPanel, it knows about resellers and DNS clusters, and it parallelizes well. The first time you run it on a real fleet, you discover what it doesn’t carry across: custom hooks under /var/cpanel/hooks/, Tweak Settings the destination cPanel doesn’t recognize because the version is newer, certain Apache include conf-d files, and the IP map if you didn’t tell it explicitly to remap. The transfer succeeds; the operation regresses.

What’s happening

whmtransfer (Transfer Tool in WHM, /scripts/transfer_tool on the CLI) operates on a list of accounts plus a set of side-bundles (resellers, packages, feature lists, DNS zones, named.conf, Apache custom includes if you opt in). It does not transfer everything in /var/cpanel/ — files outside the recognized side-bundles are skipped. Custom hooks, custom php-fpm pools that aren’t in the recognized templates, custom /etc/cpanel/ea4/profiles/ profiles, and any /usr/local/cpanel/share/ overrides you wrote are all on you. The tool also remaps IPs by default; if you want shared IP continuity, you tell it explicitly per account.

How to verify

Before launching the transfer, list everything cPanel-managed that you’ve customized on the source:

ls -la /var/cpanel/hooks/
ls /var/cpanel/templates/
find /etc/cpanel/ea4/profiles -newer /var/cpanel/.releaseinfo
whmapi1 fetch_transfer_session_log session_id=xxxx
tail -f /var/cpanel/logs/transfer_sessions/<session>/master.log

The hooks directory is the most common source of post-migration surprise. Anything you’ve put there exists only because you put it there; cPanel will not pack it into the transfer.

The fix

  1. Build a side-bundle of your own customizations — a tarball of /var/cpanel/hooks/, /var/cpanel/templates/, custom EA4 profiles, and any Apache custom config — and rsync it to the destination before kicking off the WHM transfer. Restore it before any accounts are live.
  2. Decide the IP strategy explicitly. The transfer wizard offers per-account IP remapping. Choose: keep dedicated IPs (rare; needs the same subnet on the destination), remap to the destination shared IP (common; expect a DNS cutover after), or remap to specific destination IPs you’ve staged in advance.
  3. Run a dry transfer of two non-critical accounts first. Use them to validate that EA4 profiles, hooks, and any custom integrations work on the destination before scheduling the rest.
  4. Have a re-IP runbook ready for after the transfer — the DNS cutover, the Cloudflare or load-balancer config update, the /etc/hosts overrides for monitoring, and the explicit step to retire the old IP block once it’s confirmed unused.

Whole-server transfers go faster with the kind of inventory work Stack Harbor’s cPanel and WHM management practice runs before quoting — knowing what’s bespoke on the source server is the single biggest determinant of how clean the cutover lands.