Knowledgebase

Find frequently asked questions and setup guides by searching or by browsing the categories.

What You Need

RequirementDetail
Operating systemA fresh install of AlmaLinux 8, 9, or 10, CloudLinux 8, 9, or 10, or Ubuntu 24.04 LTS
Processor64-bit x86; ARM is not supported
Memory2 GB minimum, 4 GB recommended
Disk20 GB minimum, 40 GB recommended
NetworkA static public IPv4 address
HostnameA fully qualified domain name, such as server.example.com
LicenseOne per server, tied to its IP address

cPanel lists the systems and versions it supports in its installation guide; check it before you choose a system, because the list changes with new releases.

Install cPanel only on a server with nothing else on it. It installs the web server, database, and mail services itself, and it cannot be uninstalled: removing it means reinstalling the operating system.

Step 1: Log In as Root

Connect to the server over SSH as the root user. If SSH is new to you, see how to use PuTTY and SSH.

Step 2: Set the Hostname

The hostname must be a fully qualified domain name that resolves to the server, and it must not be the name of a website you will host on it. Use a name such as server.example.com:

hostnamectl set-hostname server.example.com

Step 3: Prepare the System

On AlmaLinux and CloudLinux, cPanel requires SELinux to be disabled. Check its state with:

sestatus

If it is enabled, set SELINUX=disabled in the file /etc/selinux/config and reboot the server.

cPanel also recommends turning off the system firewall before the installation, because the installer opens the ports it needs itself. On AlmaLinux and CloudLinux:

systemctl stop firewalld.service
systemctl disable firewalld.service

After the installation, set up a firewall again from WHM.

Step 4: Run the Installer

The installation takes a while. Start it inside screen or tmux, so that a dropped SSH connection does not interrupt it, and run:

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

The installer checks the server first and stops with a message if a requirement is not met.

Step 5: Log In to WHM

When the installer finishes, open WHM in a browser at port 2087 of the server's IP address:

https://203.0.113.10:2087

Log in as root with the server's root password. The browser warns about the certificate on the first visit, because the server does not have a trusted one yet. WHM then asks you to accept the license agreement, enter a contact email address, and set the nameservers.

Step 6: Activate the License

A cPanel license belongs to one server and is tied to its public IP address. A new server can run on a free 15-day trial license from cPanel; after that it needs a paid license for the same IP address. Once the license is active, create the first cPanel account in WHM.

Ports to Remember

PortService
2087WHM, for the server administrator
2083cPanel, for each hosting account
2096Webmail
Was this answer helpful?
Loading...