Skip to content

Migrating from cPanel to DigitalOcean Droplets and App Platform

DigitalOcean attracts cPanel teams looking for a predictable monthly bill. The migration works if the team picks Droplet vs App Platform per workload, not for the whole environment.

DigitalOcean lands on the shortlist when the team wants a predictable monthly bill and is tired of cPanel licensing math. The migration is not one decision — it is per-workload. A static WordPress goes to App Platform. A heavy WooCommerce stays on a Droplet with Managed Database. A Laravel API splits into a Droplet plus Spaces. Mixing the choices is fine; mixing the migration paths is what causes pain.

What’s happening

cPanel runs every application on one host with one OS, one PHP version, one MySQL, one Exim. DigitalOcean asks you to decide each of those per project. App Platform handles routing, TLS, and zero-downtime deploys, but constrains the runtime. Droplets give you the cPanel-shaped freedom but ask you to operate the box. Spaces is S3-compatible object storage. Managed Database is a separate MySQL/PostgreSQL cluster. The migration shape depends on which combination each workload needs.

How to verify

On the cPanel source, profile each site:

whmapi1 listaccts | head -50
du -sh /home/*/public_html | sort -hr | head -20
grep ^php-fpm /etc/cpanel/ea4/php.conf

On the DigitalOcean destination, confirm the building blocks:

doctl compute droplet list
doctl databases list
doctl apps list
doctl spaces ls

The fix

  1. Per-workload mapping — for each cPanel account, decide: App Platform (stateless, framework supported), Droplet + Managed DB (custom stack), or Droplet alone (existing LAMP without managed DB cost).
  2. Provision the destination — for App Platform: connect the repo, set env vars, deploy. For Droplet: launch Ubuntu, install nginx + PHP-FPM + MariaDB (or skip MariaDB if using Managed Database), restore the cPanel backup contents.
  3. Move databases — mysqldump from cPanel, import to Managed Database. Update the application’s connection string.
  4. Move uploads to Spaces — s3cmd sync from /home/<user>/public_html/uploads/ to a Spaces bucket. Switch the app to read from https://<bucket>.<region>.digitaloceanspaces.com/.
  5. DNS cutover — point A or NS records at DigitalOcean. Keep TTLs low for 48 hours before and after.

If the cPanel host was also the mail server, DigitalOcean does not run mail — plan that as a separate track using a third-party API. Stack Harbor takes ownership of these moves under migration solutions — start a conversation before the per-workload mapping is final.