How to Install cpanel and whm on Linux / RHEL / CentOS / Fedora / Ubuntu
The first thing you need to do is login as root and then disable SELinux. Just type /etc/selinux/config or use editor to edit it and make sure the following values exist in the file:
SELINUX=disabled
SELINUXTYPE=targeted
Now we have to enable port 2086 by type this in terminal:
sudo iptables -I INPUT -p tcp --dport 2086 -m state --state NEW,ESTABLISHED -j ACCEPT sudo iptables -I INPUT -p tcp --dport 2087 -m state --state NEW,ESTABLISHED -j ACCEPT sudo service iptables save
STEP 1
cd /home | wget -N http://httpupdate.cpanel.net/latest
The above command will download the installer in your home directory. Now lets run the installer:
STEP 2
sh latest
The Step 2 will initiate the installation process which takes approximately 2 hours, depending on your server’s speed. Once it finishes, you need to active your cPanel/WHM application:
STEP 3
/usr/local/cpanel/cpkeyclt