Subscribe to our RSS feed to get alerted every time SUBSCRIBE!

How to Install cPanel and WHM on AlmaLinux / Rocky Linux

cPanel is an commercial enterprise grade web hosting control panel Enterprise Linux. It is the most awarded and recommended cPanel for latest enterprise Linux. It is designed for hosting needs and used by most of the hosting companies for dedicated hosting, semi-dedicated hosting, shared hosting as well as cloud VPS hosting providers.

Step-1 (Install cPanel & WHM Package Dependencies)
 dnf install perl*

Temporary disable the firewall during the installation of cPanle and WHM

 systemctl stop firewalld

Set host name of server to FQDN – Fully Qualified Domain Name

 hostnamectl set-hostname

Sample Output

 Static hostname:
 Icon name: computer-laptop
 Chassis: laptop
 Machine ID: b292a5b69a2343149ed86f7e6fe782c8
 Boot ID: b50bcafaed9a4ab0941b800ba4356198
 Operating System: CentOS Linux 7 (Core)
 CPE OS Name: cpe:/o:centos:centos:7
 Kernel: Linux 3.10.0-229.el7.x86_64
 Architecture: x86_64

Change the directory to home

 cd ~
Step-2 (Download the cPanel Scripts)

Run the Downloaded cPanel Installation Scripts

 bash latest

Note: The cPanel require several minutes to complete the installation . Please be patience during Installation periods. Depending your internet connection and system hardware.

Sample Output

2016-01-06 22:14:58 594 ( INFO): cPanel & WHM installation started at: Wed Jan 6 22:14:58 2016!
2016-01-06 22:14:58 595 ( INFO): This installation will require 20-50 minutes, depending on your hardware.
2016-01-06 22:14:58 596 ( INFO): Now is the time to go get another cup of coffee/jolt.
2016-01-06 22:14:58 597 ( INFO): The install will log to the /var/log/cpanel-install.log file.
2016-01-06 22:14:58 598 ( INFO):
2016-01-06 22:14:58 599 ( INFO): Beginning Installation v3...
2016-01-06 22:14:58 392 ( INFO): CentOS 7 (Linux) detected!
2016-01-06 22:14:58 408 ( INFO): Checking RAM now...
2016-01-06 22:14:58 467 ( INFO): Validating that the system hostname ('') is a FQDN...
2016-01-06 22:14:58 1277 (DEBUG): - ssystem [BEGIN]: /usr/bin/rdate -s
2016-01-06 22:15:04 1277 (DEBUG): - ssystem [END]
2016-01-06 22:15:04 1279 ( INFO): The system set the clock to: Wed Jan 6 22:15:04 2016
2016-01-06 22:15:04 1289 ( INFO): The system changed the clock by 6 seconds.
2016-01-06 22:15:04 995 ( INFO): The installation process will now set up the necessary empty cpanel directories.
2016-01-06 22:15:04 1015 ( INFO): The installation process will now ensure that GPG is set up properly before it imports keys.
2016-01-06 22:15:04 1018 ( INFO): The installation process will now import GPG keys for yum.
2016-01-06 22:15:04 916 ( INFO): Congratulations! Your installation of cPanel & WHM 11.52 is now complete.
Step-3 (Configure the firewall for cPanel)

To start the firewall

 systemctl start firewalld

After Installing the cPanel you need to setup the firewall to configure your server for cPanel.

 cd /usr/local/cpanel/
 bash /scripts/configure_firewall_for_cpanel
Step-4 (Check your hostname and Server IP Address)

For Hostname


For Server IP Address


Note: You need to note the Hostname and Server IP address for further steps of configuration of cPanel.

Step-5 (Open the cPanel in Web browser)

Open the web browser like Mozilla Firefox , Google Chrome, etc. Type the given address in navigation bar.

For WHM with SSL


For WHM without SSL


For cPanel with SSL


For cPanel without SSL


Step-6 (Login to cPanel and WHM and access the dashboard panel)

Enter the root login credentials like username and passwords and finally hit on Login button.
After successfully login you need to access the dashboard panel of cPanel and WHM.

Congratulation now you have installed the cPanel and WHM on Enterprise Linux.