How to install Cpanel

install cpanel
5/5 - (3 votes)

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:

  1. Your server must have a public IP address.
  2. 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).
  3. cPanel must be installed on a server with no existing configuration; in other words, a zero-touch server.
  4. 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.

Related articles

nslookup practical commands

Anyone who works in IT has run into a failed DNS request at least once, and it can be frustrating. In this…