GuideMigrating from hPanel, Plesk or DirectAdmin to cPanel: What Transfershostinq.com

Migrating from hPanel, Plesk or DirectAdmin to cPanel: What Transfers

Moving to a cPanel host from hPanel, Plesk or DirectAdmin is common, but there is no single import button that brings everything across. Website files and databases move easily. Mailbox passwords, DNS records, SSL certificates and cron jobs usually have to be recreated. Knowing which is which before you start is what keeps a migration calm.

This guide lists what transfers and what does not, then walks through a migration step by step, with notes for each source panel.

Two kinds of migration

Server-level migration. If you own both servers and have root access, cPanel's Transfer Tool in WHM can pull accounts from Plesk and DirectAdmin servers running Linux. It copies files, databases and email in bulk. Even then, cPanel documents exceptions: custom software settings, spam filter lists and some mailing lists are not carried over, and DNS zones are rebuilt from templates, so custom records need checking.

Account-level migration. If you are a customer on shared hosting, you only have access to your own panel. The move is done piece by piece: files, databases, mail and DNS. This is always the case with hPanel, which is proprietary and has no export format that cPanel can restore. The rest of this guide covers this kind of move.

What transfers and what does not

ItemMoves by copying?What you need to do
Website filesYesDownload and upload them to the new document root
MySQL or MariaDB databasesYes, as a dumpCreate the database first; cPanel adds your username as a prefix
Database users and passwordsNoCreate new ones and update the site's config file
Email messagesYes, over IMAPCreate each mailbox, then copy mail with imapsync or a mail client
Mailbox passwordsUsually notSet new passwords and update every phone and laptop
Forwarders, filters, autorespondersNoRecreate them in cPanel
DNS recordsNoCopy every record from the old zone, especially TXT, MX and CNAME
SSL certificatesNo needAutoSSL issues a free certificate once DNS points to the new server
Cron jobsNoRecreate them with the new paths under /home/USER
PHP version and settingsNoSet them in Select PHP Version or MultiPHP
Nginx-only rulesNoRewrite them as .htaccess rules
Site builder pagesOften notBuilder sites usually cannot be exported; rebuild or use a different platform
Windows apps (ASP.NET, MSSQL)NocPanel runs on Linux only; these need Windows hosting

Before you start

  • Make an inventory: domains, subdomains, databases, mailboxes and their sizes, forwarders, cron jobs and any third-party services that call your site.
  • Find out where DNS is hosted. It may be at the old host, at your registrar or at a service such as Cloudflare. That is where you will make the final switch.
  • Lower the TTL of your A and MX records to 300 seconds a day before the move, so the change spreads quickly.
  • Do not cancel the old hosting until the new site and mail have run without problems for at least a week.

Step-by-step migration

  1. Add the domain in cPanel. The primary domain uses public_html. Addon domains get their own folder.
  2. Copy the files. Download a backup of the site files from the old panel, or download them over SFTP. Upload the archive to the new document root and extract it with cPanel's File Manager.
  3. Export the databases. Use phpMyAdmin's Export tab on the old host, or SSH if you have it:
    mysqldump -u olduser -p olddatabase > site.sql
  4. Create and import the database in cPanel. Use the Database Wizard to create the database and user, then import the file in phpMyAdmin or from the Terminal:
    mysql -u USER_site -p USER_site < site.sql
    Large dumps import more reliably from the command line. Our guide on MySQL backup and restore covers the details.
  5. Update the site's configuration. For WordPress, edit wp-config.php:
    define( 'DB_NAME', 'USER_site' );
    define( 'DB_USER', 'USER_site' );
    define( 'DB_PASSWORD', 'the-new-password' );
    define( 'DB_HOST', 'localhost' );
  6. Create the mailboxes with exactly the same addresses, then copy the messages. imapsync copies folder by folder and can be run again later to pick up new mail:
    imapsync \
      --host1 mail.oldhost.example --user1 info@example.com --password1 'OLD' --ssl1 \
      --host2 NEW_SERVER_HOSTNAME --user2 info@example.com --password2 'NEW' --ssl2
    Use the new server's hostname, shown in cPanel under Connect Devices, because mail.example.com still points to the old host at this stage. More tips are in how not to lose email when migrating a site.
  7. Recreate the DNS records in the new zone. Copy any TXT records for domain verification, SPF and DMARC, and any CNAME records for external services. Do not copy the old DKIM key: enable DKIM in cPanel and publish the new key it generates.
  8. Test before switching. Point the domain to the new server only on your own computer by adding a line to your hosts file (/etc/hosts on macOS and Linux, C:\Windows\System32\drivers\etc\hosts on Windows):
    203.0.113.10  example.com www.example.com
    Replace the IP with your new server's address, browse the site, log in to the admin area and submit a form.
  9. Switch DNS. Change the nameservers, or the A and MX records, at your DNS provider. AutoSSL then issues the certificate, usually within a few hours. Our article on DNS changes when migrating hosting explains propagation.
  10. Run a final mail sync a day after the switch to catch messages that reached the old server during propagation, then remove the hosts file line.

After the switch: what to check

Most migration problems show up in the first few days, and nearly all of them are small. Go through this list once DNS has updated:

  • HTTPS: every page loads with a valid certificate and no mixed-content warnings.
  • Forms and notifications: contact forms, order emails and password resets arrive, and they do not land in spam.
  • SPF: the record now includes the new server, and old entries for the previous host are removed once you no longer send through it.
  • DKIM and DMARC: the new DKIM key is published and a test message shows a pass.
  • Cron jobs: scheduled tasks run, with paths that point to the new home directory.
  • Mail clients: phones and laptops connect to the new server with the new passwords.
  • Backups: the new host's backups include the site, and you know how to restore one.

Keep a final copy of the old account's files, databases and mail before you cancel it. It costs nothing to store and settles any question that comes up weeks later.

Notes for each source panel

From hPanel

hPanel lets you download file and database backups separately. Mailboxes are not part of those backups, so copy mail over IMAP as described above. Sites made with a drag-and-drop website builder generally cannot be downloaded at all, which means they have to be rebuilt, for example in WordPress. Because hPanel also uses LiteSpeed, .htaccess rules usually work unchanged on a LiteSpeed cPanel server.

From Plesk

Plesk stores sites in httpdocs instead of public_html, so check any hard-coded paths in configuration files. Rules added under Plesk's "Additional nginx directives" do not apply on cPanel and must be rewritten for .htaccess. Windows-based Plesk subscriptions running ASP.NET or Microsoft SQL Server cannot move to cPanel.

From DirectAdmin

DirectAdmin keeps each site under domains/example.com/public_html, so absolute paths in scripts and cron jobs change. DirectAdmin user backups contain files, databases and mail, and you can extract them to get the site files and SQL dumps, but cPanel cannot restore that archive directly at account level.

Frequently asked questions

Will my website go offline during the move?

Not if you follow the order above. The old site keeps serving visitors until the DNS switch, and by then the new copy is tested. Visitors see one or the other, never an empty page.

Do email passwords transfer?

In an account-level migration, no. You set new passwords and update each device. Plan a short message to staff telling them when to change their settings.

I am moving from another cPanel host. Is it easier?

Yes. A full cPanel backup (a cpmove or backup archive) contains files, databases, mail, passwords and DNS, and the new host can restore it in one step.

Can someone do this for me?

Many hosts offer migration help. Hostinq.com includes free migration with every hosting plan, as described in moving your website to Hostinq.com without downtime.

If you are planning a move to cPanel, Hostinq.com's free migration service copies your files, databases and mailboxes, tests the site on a temporary address and switches DNS once you approve. You can compare plans on the shared hosting page.

Share: