Install cPanel on Rocky Linux
I have tried to run cPanel on Ubuntu but I have run into many different issues, cPanel is not supported on debian however I have found it runs perfectly on Rocky 8
Firewalls
The installer will attempt to open any needed ports during the installation process. We recommend that you disable OS firewalls before you run the cPanel & WHM installation.
If you are unsure if you have a firewall in place on your OS please run
systemctl status firewalld.service- If the
firewalldservice is not running, you can skip the following steps to deactivate firewalls on Rocky Linux servers.
To deactivate firewalls on Rocky Linux servers, run the following commands where ~/firewall.rules represents the firewall rules file:
iptables-save > ~/firewall.rules
systemctl stop firewalld.service
systemctl disable firewalld.serviceDisable SELinux
SELinux is disabled by default in Rocky Linux. If you have enabled SELinux, you must disable it prior to installing cPanel & WHM.
To disable SELinux security features, use one of the following methods:
Use the graphical interface to disable SELinux while you configure your operating system, and then reboot the server.
Edit the /etc/selinux/config file to set the SELINUX parameter to disabled, and then reboot the server. The contents of the /etc/selinux/config file should resemble the following example:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targetedInstallation Guide - Installation
To install cPanel & WHM on your server, run the following command:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latestThis command changes your session to the home directory, downloads the latest version of cPanel & WHM, and runs the installation script.