How to install Cpanel

cPanel is one of the most widely used control panels among system administrators on Linux, so this guide covers how to install cPanel on Linux, step by step.
Before you start the installation, check these prerequisites:
- Your server must have a public IP address.
- Once cPanel is installed on a server, there is no way to remove it. To delete it, you have to reinstall the whole OS (on AVANETCO servers you can reinstall the OS from the client area).
- cPanel must be installed on a server with no existing configuration; in other words, a zero-touch server.
- Each license can be installed on one server.
Your server’s hardware specifications should match the table below:
Now let’s start the installation.
First, set a hostname for your server. This name must be visible from the internet and respond to ping.
Before you install, disable the firewall and SELinux. You can configure the firewall later with APF.
systemctl stop firewalld.service systemctl disable firewalld.service
To disable SELinux, edit the following file and change the highlighted parameter to disabled (SELINUX=disabled):
nano /etc/selinux/config
Now reboot the server.
Connect to the server again as root (every AVANETCO Linux server includes full root access), then download and run the cPanel installer:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
You can replace the path /home with any directory you want. When the automatic installation finishes, your server is reachable at the address below:
https://SERVER_IP:2087
You can use either the server’s domain name or its IP. Port 2087 opens the admin panel, and port 2083 is for client web access.