UnderHost
Knowledgebase Docs

Installing cPanel/WHM on a dedicated server

Install cPanel and WHM on an AlmaLinux dedicated server. Requirements, the installation command, license activation, and post-install configuration steps.

On this page

cPanel/WHM is the industry-standard hosting control panel. Installing it on a dedicated server gives you (and your reseller clients if needed) a familiar, feature-rich hosting management interface. Note that cPanel requires a separate license-ask UnderHost support about cPanel licensing options.

Requirements

RequirementDetails
OSAlmaLinux 8 or 9 (recommended), CloudLinux, Rocky Linux
RAMMinimum 1 GB; 2+ GB recommended
DiskMinimum 20 GB free
Root accessRequired
Fresh OS installcPanel must be installed on a clean OS-do not install on a server already running Apache, PHP, or MySQL
HostnameMust be a valid FQDN (e.g., server1.yourdomain.com)
cPanel licenseRequired-monthly subscription from cPanel or a licensed provider

Install cPanel

  1. Set the server hostname: hostnamectl set-hostname server1.yourdomain.com
  2. Verify hostname resolves: the A record for server1.yourdomain.com should point to the server IP
  3. Run the cPanel installer:
cd /home
curl -o latest -L https://securedownloads.cpanel.net/latest
sh latest

The installation takes 30–60 minutes. It installs Apache, MySQL, Exim mail, and all cPanel components. The server should not be used during this time. You can monitor progress in the terminal output.

License activation

cPanel checks the server's IP address against the cPanel license server. If a license is active for your server IP, WHM activates automatically after installation. To verify:

/usr/local/cpanel/cpkeyclt

Contact UnderHost support if you need assistance with license provisioning for your dedicated server.

Post-install setup

  1. Log in to WHM at https://your-server-ip:2087 with root credentials
  2. Complete the WHM setup wizard-configure nameservers, contact email, and basic settings
  3. Run Initial Setup Wizard in WHM to configure network, mail, and backup settings
  4. Set up custom nameservers if needed
  5. Configure Backup Configuration in WHM to enable automated backups
  6. Enable AutoSSL server-wide under WHM → Manage AutoSSL
Was this article helpful?

Installation assistance

Our NOC team can help with cPanel installation and license configuration on your server.

Related articles

Back to Dedicated Servers