CentOS 7
Prerequisite:
- Launch a CentOS 7 instance (Only install cPanel & WHM on a freshly-installed operating system).
- Access the instance via SSH.
- Run all the following commands from the shell/terminal (All commands need to be run as the root user).
- 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.
Code Block |
---|
|
hostname <your-hostname.example.com> |
Step 2: Disable SELinux.
Code Block |
---|
|
vi /etc/selinux/config |
Code Block |
---|
|
# 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
Code Block |
---|
|
systemctl stop NetworkManager
systemctl disable NetworkManager
systemctl enable network.service
systemctl start network.service |
Reboot
Step 4: Download and run the installation script. Tips: You may use the screen utility in case your session disconnects during installation.
Code Block |
---|
|
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest |