G7 Guides
Home » How to install cPanel & WHM
cPanel Dedicated

How to install cPanel & WHM

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
hostname set-your-hostname
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
*copy and paste the whole block above

Related posts

How to Tune PHP-FPM Guide

George Prodromou

How to install nload on Ubuntu and Centos

George Prodromou

How to install WordPress

George Prodromou

Leave a Comment