Back to Projects

Self-Hosted cPanel

A cPanel/WHM server that powers this site and my lab projects. Focused on predictable migrations, backups, and SSL.

Self-hosted cPanel
cPanel/WHM dashboard view
WHM/cPanel in my lab: hosting this portfolio and test services.

What I run

  • Rocky Linux + cPanel/WHM with AutoSSL and scheduled backups
  • Separate staging and production vhosts, clean URLs, and redirects
  • Tuned PHP-FPM, log rotation, and basic WAF rules
  • Migration playbook: pre-checks → snapshot/backup → cutover → post-checks

Snippets

Backup and restore a single account (root shell):

# Package an account (on source)
/scripts/pkgacct username

# Copy the archive to target and restore
/scripts/restorepkg /home/cpmove-username.tar.gz

AutoSSL (ensure it's enabled + run now):

# Force a run from CLI:
/usr/local/cpanel/bin/autossl_check --all-users

I keep a short runbook (checks, rollbacks, DNS/SSL steps) so I can repeat migrations safely.