How to install cPanel/WHM on your VPS

This is a powerful web hosting control panel solution for managing web applications on your VPS through your web browser of choice.
While cPanel manages individual hosting accounts, WHM is an administrative interface that provides control over the entire server and multiple cPanel accounts.

Pre-installation requirements:

A clean server installation of AlmaLinux9 64bit (you can easily perform a reinstallation of your server with our AlmaLinux9 template as described in our article here)
Root access to your VPS
Minimum 2GB RAM (4GB recommended)
Minimum 20GB disk space (40GB recommended)
The static IP address of your VPS
A cPanel license (cPanel is not free/open source! A license can ordered as an add-on here

*Note: the cPanel licenses are issues per IP address


Networking requirements:

Your hostname must meet the following requirements:

Be a registered and fully-qualified domain name.
Does not match any of your server’s domains.
Be a maximum of 60 characters in length.
Resolves to a valid IPv4 or IPv6 address.
To check that in the server:

hostnamectl

or, to change it

hostnamectl set-hostname server.yourdomain.com


Edit the /etc/hosts file to match:

127.0.0.1 server1.yourdomain.com server1 localhost


Step-by-step installation (you will need to do this part while logged in as root)

  • Set a password for root (this will be used by the default `root` user in cPanel&WHM)
  • Update the server dnf update -y (reboot server if kernel or core libraries were updated)
  • Download the latest version of cPanel & WHM:

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

  • Install Perl:  you can use either dnf install perl -y or yum -y install perl
  • Disable SELinux (cPanel doesn't support SELinux in enforcing mode)
    • Edit the /etc/selinux/config file and set the SELINUX parameter to disabled (reboot the server)
  • Run the installer script sh latest
  • Access your cPanel & WHM from your browser of choice:
    https://your_server_IP:2087 for WHM
    https://your_server_IP:2083 for cPanel
    • For login use username: root along with the server's configured root password
    • If you don't have a valid cPanel license issued for the IP address of the server, you will be prompted to get started with a free cPanel trial.

 

 

  • cpanel, software, install, VPS, how to
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Remove disc from sources.list

Want to update Debian but just recive this error?: Media change: please insert the disc...

Root user on Ubuntu / Debian

On standard Ubuntu and Debian does not offer a root user via ssh (unless you activate him), you...

Long password

For security reasons we always recommend to set strong and long passwords.But we also advise to...

Speedtest

Step-by-step guide sudo apt-get install python-pip sudo pip install speedtest-cli...

Step-by-step: Ubuntu 20 installation

Ubuntu 20 Standard installation1 ) Choose language and locale, we will use English.   2)...