Step-by-step guide to installing cPanel on CentOS, including system requirements, commands, and initial configuration.
π₯οΈ Server setup β’ β‘ Quick install β’ π Beginner friendly
In this guide weβll show you how to install cPanel & WHM on a modern Linux server using supported operating systems such as AlmaLinux or Rocky Linux. cPanel is one of the most widely used hosting control panels, allowing you to manage websites, email, databases and server security in one place.
cPanel must be installed on a clean operating system. Do not install it on a server that already has a web stack, database system, or hosting panel installed.
Use an SSH client such as PuTTY or Terminal to connect to your server.
ssh root@YOUR_SERVER_IP
Once logged in, update your system:
dnf update -y
cPanel requires a fully qualified domain name (FQDN):
hostnamectl set-hostname server1.yourdomain.com
Install basic dependencies:
dnf install -y curl perl
Run the official installation script:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
Installation may take 30β60 minutes depending on your server performance.
Once installed, open your browser and go to:
https://YOUR_SERVER_IP:2087
Login using:
After installation, secure your server immediately:
Installing cPanel on a modern Linux server is straightforward when using supported operating systems like AlmaLinux or Rocky Linux. Once installed, you can manage hosting, email, DNS, and security through a simple web interface.