Preparation for the installation
We need to disable the server’s firewall, SELinux, and the network manager before installing cPanel/WHM to centOS
> Please stop the services using the below command
systemctl stop firewalld.service
> Please disable the server using the below command
systemctl disable firewalld.service
> Please stop the NetworkManager service using the below command
systemctl stop networkmanager
> Please disable NetworkManager
systemctl disable networkmanager
> Please disable SELinux by editing the following file
nano /etc/selinux/config
> Please changing the line SELINUX=enabled
to SELINUX=disabled
> Please install the Perl
yum install perl -y
Install cPanel/WHM
> Please change the director to home
cd /home
> Please download the latest release of cPanel/WHM
curl -o latest -L https://securedownloads.cpanel.net/latest
> Please run the installation script
sh latest