How to Install cPanel on CentOS 7

Prerequisites

systemctl disable NetworkManager
systemctl stop NetworkManager
systemctl disable firewalld
systemctl stop firewalld
setenforce 0
yum update -y
yum install epel-release -y
yum install wget htop tmux nload -y
yum install bind-chroot -y

For install cPanel in IRAN

echo '168.119.126.94 repo.mysql.com yum.mariadb.org' >> /etc/hosts

Set Timezone:

timedatectl set-timezone Asia/Tehran

Update DNS:

echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" > /etc/resolv.conf
echo "PEERDNS=no" >> /etc/sysconfig/network-scripts/ifcfg-eth0

Install cPanel

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest