Skip to content

DirectAdmin to cPanel migration: shape and gaps to watch

Moving from DirectAdmin to cPanel/WHM lands cleanly when you know which DirectAdmin features map to cPanel one-to-one and which require manual setup.

DirectAdmin and cPanel cover the same domain — shared hosting control panel — but they organize the data differently and expose slightly different features. The DirectAdmin-to-cPanel direction is less automated than the reverse direction; WHM does not ship a built-in DirectAdmin importer the way it does for Plesk. The migration uses per-account backups and a curated restore, with manual reconstruction of the bits that do not map cleanly.

What’s happening

DirectAdmin exports per-user backups in its own format (user.tar.gz). These contain home directory, mail, databases, and DirectAdmin-specific account metadata. cPanel cannot restore these directly; the standard path is to extract the user backup, repackage the contents into a cPanel-shaped backup, or restore-by-parts (files via rsync, MySQL via dump, mail via imapsync). Resellers, packages, and DNS records require manual mapping.

How to verify

Inventory the DirectAdmin source:

# from DirectAdmin source
ls /home/admin/admin_backups/
cat /usr/local/directadmin/conf/directadmin.conf | head
da user-list | wc -l
da package-list
da reseller-list
# database engine in use
mysql --version
# mail format
ls /home/<user>/imap/

On the cPanel destination:

whmapi1 get_license_info
df -h /home
whmapi1 listpkgs

The fix

  1. Per-user export from DirectAdmin — Admin > Manage User Backups, select users, run the backup. Files land in /home/admin/admin_backups/. Each is a .tar.gz with the user’s data.
  2. Map DirectAdmin packages to cPanel packages — da package-list shows DirectAdmin packages; in cPanel, create equivalent packages in WHM > Packages > Add a Package. The names do not need to match; the resource limits do.
  3. Restore per account — extract the DirectAdmin tar, then either: (a) rsync domains/<domain>/public_html/ to /home/<user>/public_html/; (b) import MySQL databases via mysql < dump.sql; (c) imapsync mailboxes via DirectAdmin IMAP to cPanel IMAP. Set the cPanel package on creation.
  4. Mail domain routing — for each migrated domain, check /etc/localdomains is correct on cPanel and exim -bt postmaster@<domain> resolves locally.
  5. DNS reconstruction — DirectAdmin zones do not import; recreate in WHM > DNS Functions > Edit DNS Zone, mirroring what DirectAdmin had. Then update NS records at the registrar to point at the cPanel cluster.

The two longest tails are reseller hierarchies (DirectAdmin’s reseller model is more granular than cPanel’s) and custom DirectAdmin user.conf flags. Reconstruct resellers in WHM > Resellers; flags rarely have direct equivalents. Stack Harbor handles DirectAdmin-to-cPanel cutovers under migration solutions — book a migration review before the per-user backups start.