This article provides a guide for how to install cPanel on Rocky Linux 9 Server. This guide requires root-level access.
Prerequisites
- Fresh install Rocky Linux 9 VPS or Dedicated Server
- Root-level access
- Public IP address
- Hostname must be a fully-qualified domain name
How to Install cPanel on Rocky Linux 9 Server
To install cPanel on Rocky Linux 9 server, follow the steps:
- Login to the SSH terminal as root user.
- Run the following commands:
dnf update -y
dnf -y install nano perl
echo "CPANEL=stable" >> /etc/cpupdate.conf
echo "RPMUP=daily" >> /etc/cpupdate.conf
echo "SARULESUP=daily" >> /etc/cpupdate.conf
echo "STAGING_DIR=/usr/local/cpanel" >> /etc/cpupdate.conf
echo "UPDATES=daily" >> /etc/cpupdate.conf
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest - Wait until the install script has finished (15-45 minutes).
- Login to the WHM interface (https://<your_ip_address>:2087)
- Accept the cPanel terms of service and enter the Name servers
Conclusion
You now know how to install cPanel on Rocky Linux 9 server.