To install cPanel you will need a compatible operating system, we highly recommend using CentOS 7 for cPanel installations.
On a fresh install of CentOS 7, run the following commands.
yum update -y
yum -y install perl
systemctl stop NetworkManager.service systemctl disable NetworkManager.service
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
It will take anything from 5 minutes to 1 hour to install cPanel on your server. Once the installation is complete you can access your WHM control panel by navigating to https://your-servers-ip:2087/
Install CSF Firewall
After your installation is complete, we recommend installing the CSF firewall using the commands below.
cd /usr/local/src/ wget https://download.configserver.com/csf.tgz tar -xzf csf.tgz cd csf sh install.sh