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.service
systemctl disable NetworkManager.service
systemctl enable network.service
systemctl start network.service

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.6" > /root/cpanel_profile/cpanel.config

Note: MariaDB 10.6 is compatible with AlmaLinux 8/9-based systems only; for Ubuntu-based systems, it may not function correctly.

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

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

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

Related Articles

How to fix IP Missing issue on cPanel/WHM

We are here to help you with solving the problem of Missing IP Server in list accounts. The...

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...