CentOS 7

Prerequisite:

  1. Launch a CentOS 7 instance (Only install cPanel & WHM on a freshly-installed operating system).
  2. Access the instance via SSH.
  3. Run all the following commands from the shell/terminal (All commands need to be run as the root user).
  4. You need to purchase your own cPanel license to use the control panel.

Step 1: Set a valid hostname (FQDN) for your system. Note: Replace “your-hostname.example.com” with a FQDN.

hostname <your-hostname.example.com>

Step 2: Disable SELinux. 

vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

Step 3:  Disable Network Manager

systemctl stop NetworkManager
systemctl disable NetworkManager
systemctl enable network.service
systemctl start network.service

(warning) Reboot

Step 4: Download and run the installation script. Tips: You may use the screen utility in case your session disconnects during installation.

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