How to install cPanel/WHM on RHEL/Ubuntu-based OS

Important Note:
The procedures outlined in this guide necessitate root privileges. Ensure that you execute the steps below either as the root user or with the sudo prefix.

Prior to initiating the process, verify that you have obtained a valid cPanel license. Subsequently, log into your server as the root user via SSH using its IP address.

Disable NetworkManager by executing the following commands:

systemctl stop NetworkManager; systemctl disable NetworkManager
systemctl enable network; systemctl start network

Set a custom hostname and commence the installation process. To establish your own hostname, utilize the following command, ensuring to substitute "server1.domainname.tld" with your preferred hostname:

hostnamectl set-hostname server1.domainname.tld

Specify the MySQL/MariaDB version before installation if needed:

mkdir -p ~/cpanel_profile && echo "mysql-version=10.11" > /root/cpanel_profile/cpanel.config

Note: MariaDB 10.11 works with AlmaLinux 8/9 and Ubuntu-based systems.

Execute the following command to download and install cPanel. Be aware that the installation process might take a considerable amount of time:

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

Re-enable NetworkManager. For example, if you have access to SSH/Terminal/Console, the following commands will be used to re-enable NetworkManager.

systemctl disable network; systemctl enable NetworkManager
systemctl stop network; systemctl start NetworkManager

Subsequently, follow the instructions received in your email after making the payment to activate the license.

  • cpanel/whm, centos 7, centos 6, centos 8
  • 13 Users Found This Useful
Was this answer helpful?

Related Articles

Domain names are not showing in WHM

We were unable to see any domains listed under WHM -> List Accounts. However, we can see the...

How to Start/Stop or Restart Apache server

Apache is the HTTP server that is freely available over the internet. It is a kind of software or...

How to install Attracta SEO Tools plugin

RequirementscPanel/WHM needs to be installed on your server. Step 1: SSH into your server and go...

How to Install CpCleaner in cPanel through SSH?

Installation Run the following shell commands as root via SSH: wget -O cpc-1.0.3.tar...

How to Secure a cPanel/WHM Web Server

Here are a few basic steps that you should keep in mind for keeping a server secure. 1) Strong...