Migration

cPanel to Plesk (or Plesk to cPanel): how to plan the migration

In this article8 sections

Moving between two control panels is not the same as moving a website. A control panel holds far more than the site: accounts and plans, domains and subdomains, DNS zones, databases and their users, mailboxes, forwarders and filters, cron jobs, certificates, PHP versions per site, and the server settings that make all of it behave. A panel-to-panel migration has to carry all of that, or the new server looks right and behaves wrongly.

The good news is that both panels ship tools that do the heavy copying. The bad news is that no tool moves everything, and the difference between “the migration finished” and “everything works” is where the projects go wrong. This guide covers how to plan the move, what the tools do and do not carry over, and how to cut over with a way back.

Step 1: Take an inventory before you touch anything

Write down what exists on the source server. You are looking for two things: what must be moved, and what will need manual attention. For each account or subscription, record:

  • Domains: primary, addon, parked, subdomains, and where each one’s DNS is hosted. If DNS is hosted elsewhere (a registrar or Cloudflare), the DNS move is just a record change; if the old server is the nameserver, the zones must move too.
  • Websites: the application (WordPress, Laravel, custom PHP, static), its PHP version and the extensions it needs, special .htaccess or php.ini settings, and any scheduled jobs.
  • Databases and users: names, sizes, and which application uses each.
  • Email: mailboxes with sizes, forwarders, auto-responders, filters, and where the MX points. This is where migrations lose data when rushed.
  • Certificates: which are free (AutoSSL or Let’s Encrypt, to be reissued) and which are paid (to be exported or replaced).
  • Server-level settings: the firewall, ModSecurity rules, PHP handlers, custom Apache or NGINX includes, cron jobs run as root, and extra services. These belong to the server, not to an account, so tools often leave them behind.
  • Resellers and plans: how accounts are grouped, resource limits, and package definitions.

On cPanel/WHM, useful starting points are the List Accounts screen in WHM, ls /var/cpanel/users, and du -sh /home/* for sizes. On Plesk, plesk bin subscription --list and plesk bin domain --list give you the subscriptions and domains. Also take a note of the source server’s own hostname and IP, since mail and DNS often depend on them.

Step 2: Know what each tool does

From cPanel to Plesk: the Plesk Migrator. Plesk’s own Migrator extension (installed from the Extensions page) connects to the source server over SSH with root credentials and copies subscriptions: their domains, websites and files, mail, and databases. Plesk’s documentation lists cPanel 11.5 and later as supported sources. Points that matter in planning:

  • It migrates subscriptions as a whole, with all their domains. You cannot pick individual domains within a subscription.
  • It does not carry Plesk-level service settings such as PHP handlers, Fail2Ban, ModSecurity and firewall rules. Rebuild those on the target.
  • Reseller and customer accounts that have no domains are not moved.

From Plesk to cPanel: the Transfer Tool in WHM. cPanel’s Transfer Tool (WHM, Transfers) lists Plesk among supported source panels. You give it the source server’s address, SSH port and root credentials, choose the remote panel type, scan, and pick accounts. Per cPanel’s documentation:

  • Forwarding domains in Plesk must be converted to physical hosting accounts first.
  • Email addresses with a plus sign in the name and FTP accounts with an underscore are not transferred; recreate them by hand.

cPanel to cPanel and Plesk to Plesk have their own native tools (the Transfer Tool for cPanel, and the Migrator for Plesk-to-Plesk), and are simpler because both ends speak the same format.

Whichever route you take, treat the vendors’ current documentation as the authority for supported versions and limits: they change with releases. Read the tool’s page for your source and target versions before you commit to a date.

Step 3: What usually does not come across

Plan for these as manual work:

  1. Server settings: firewall, ModSecurity rule sets, PHP versions and handlers (the same site may need PHP 8.1 on the new server, not 7.4), resource limits, and custom web server configuration.
  2. Certificates: reissue free ones on the new server after DNS points there. For paid certificates, export the certificate, key and chain, or reissue from the provider.
  3. Mail details: webmail data (contacts and calendars kept by the webmail application), custom filters, spam settings, and mailbox passwords, which may need to be reset.
  4. Cron jobs and scripts that live outside account folders, and paths inside them that include the old server’s home directory layout.
  5. Hard-coded paths in applications: /home/olduser/public_html in a config file is wrong on a Plesk server (/var/www/vhosts/example.com/httpdocs). Search for old paths in configuration files after the move.
  6. DNS records the tool did not copy: TXT records for SPF, DKIM, DMARC, verification records, and custom subdomains. Export the old zone and compare it with the new one record by record.

Step 4: Prepare the target and rehearse

  • Install the panel, patch the server, and apply your baseline (hostname, firewall, SSH keys, backups, monitoring) before any data arrives. See the guide to hardening SSH for the first access steps.
  • Match the software: the PHP versions, database engine and extensions the sites need.
  • Migrate one small account first as a test. Open its site through your computer’s hosts file, or with curl --resolve example.com:443:NEW_SERVER_IP https://example.com/, so you see the new server without changing DNS.
  • Check the site, mail send and receive, forms, logins and scheduled tasks on that test account. Write down every difference and fix its cause before you move the rest.

Step 5: The cutover plan

  1. Lower the DNS TTL on the records you will change (A, AAAA, MX) to a few minutes, at least a day before the move, so the switch takes effect quickly and can be reversed quickly.
  2. Run a full copy with the migration tool, in waves: small accounts first, large ones in a quiet period.
  3. Freeze changes on the source (tell clients not to edit sites or run orders) shortly before the final sync.
  4. Do a final sync of files and databases. For mail, run a last incremental copy (for example with imapsync) right after the DNS change, to pick up messages that arrived on the old server in the meantime.
  5. Switch DNS: change the A and MX records, or change the nameservers if you host DNS yourself. Keep the old server running.
  6. Watch both servers. For hours after the change, traffic arrives at both. Check the logs of both, and confirm new mail is landing on the new server.
  7. Reissue certificates and check that HTTPS works for every domain.
  8. Re-check email authentication: SPF must now include the new server’s address, DKIM keys must exist for the new mail system, and the PTR record for the new IP must be set at the provider (see the guide on reading email bounces).
  9. Keep the old server for at least a week, read-only if you can, then back it up one last time before it is shut down.

Step 6: After the cutover

  • Test every site with a person who uses it: logins, uploads, checkout, contact forms, scheduled jobs.
  • Check file ownership and permissions, the most common cause of “403” and “cannot write” errors after a migration.
  • Compare the DNS zones one more time.
  • Set up backups and monitoring on the new server on day one, and take a first restore test.
  • Update every allowlist that held the old server’s IP: payment gateways, APIs, registrars, SMTP relays, firewalls on other servers.

The most common mistakes

  • Cutting over without a rehearsal. The first account you move should not be a customer’s online shop.
  • Forgetting email. Websites tolerate a few minutes of confusion; lost mail does not.
  • Moving DNS and hosting at the same time with a long TTL still set, so half the world sees the old site for two days.
  • Switching off the old server too soon, before late mail and cached DNS have settled.
  • Believing “the tool finished” means “it works”. It means files and databases were copied.

When it is worth getting help

A migration is a project with a deadline, a fixed number of things that can go wrong, and customers watching. If you are moving a hosting business, an agency’s client sites, or a server with mail, a planned migration with a rehearsal and a rollback is worth doing once and properly.

I carry out migrations between cPanel, Plesk and plain Linux servers, including mail and DNS, with minimal downtime and a written plan. You can see my profile on Upwork, or read about server migration. For the small details that bite, there is also moving servers: the small things.

The supported versions and limits above come from the vendors’ own documentation, which is worth reading for your exact versions: the Plesk migration guide and the cPanel Transfer Tool documentation.