DEV Community

Cover image for How to Install cPanel & WHM on AlmaLinux 9 or Ubuntu 24.04 LTS (2026 Guide)
Shannon Dias
Shannon Dias

Posted on

How to Install cPanel & WHM on AlmaLinux 9 or Ubuntu 24.04 LTS (2026 Guide)

Hey DEV community! πŸ‘‹

If you are provisioning a bare-metal dedicated server for web hosting in 2026, you already know that CentOS is officially out of the picture. Getting cPanel & WHM running smoothly on modern OS options like AlmaLinux 9 or Ubuntu 24.04 LTS requires an updated set of pre-flight checks.

Relying on outdated tutorials will often result in conflicting package managers, broken dependencies, and failed installations. Since cPanel cannot be cleanly uninstalled without a complete OS wipe, you have to get it right on the first try.

We just published an in-depth, verified tutorial over at FitServers that cuts through the noise. No fluffβ€”just the exact terminal commands and WHM GUI steps you need to get production-ready.

πŸ› οΈ What You Will Learn

Our comprehensive guide covers the entire deployment lifecycle:

  • OS Selection & Requirements: Why AlmaLinux 9 is the primary recommendation, and how to handle Ubuntu's specific AppArmor and NetworkManager quirks.
  • Pre-Installation Prep: Step-by-step commands to properly set your FQDN (hostnamectl), update core packages, and disable OS-level firewalls (firewalld or ufw) so cPanel can bind its own services.
  • The Installation Execution: How to safely pull and run the official installation script using a screen session:
  # Example: Starting a persistent session and running the installer
  screen -S cpanel-install
  cd /home && curl -o latest -L [https://securedownloads.cpanel.net/latest](https://securedownloads.cpanel.net/latest) && sh latest
Enter fullscreen mode Exit fullscreen mode

Initial WHM Configuration: A walkthrough of the Setup Wizard, including setting up custom nameservers and provisioning Let's Encrypt certificates via AutoSSL.

Security Hardening: Essential post-install lock-downs. We detail the exact network ports you need to open on your cloud firewall and how to activate cPHulk to immediately block brute-force login attacks.

Creating Your First Account: Provisioning your first hosting package and web space.

πŸš€ Ready to Deploy?
Whether you are setting up your own infrastructure, migrating high-traffic client sites, or building a hosting reseller business, this guide is your definitive blueprint.

For read more, visit the tutorial link: [https://www.fitservers.com/tutorials/howto/install-cpanel-whm-on-dedicated-server/]

Top comments (0)