In this tutorial, we will explain How to install cPanel on CentOS.

cPanel is an online Linux-based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site to the website owner or the “end user”. cPanel utilizes a three-tier structure that provides capabilities for administrators, resellers, and end-user website owners to control the various aspects of website and server administration through a standard web browser.

Prerequisites

You will need:

  • A VPS Starter plan running CentOS
  • Valid cPanel license.

Step 1 – Prepare for installation

To install cPanel you need to have installed Perl language in your server because cPanel is written in Perl.

Run this command to install Perl

yum install perl

To run cPanel server must have a Fully Qualified Domain Name (FQDN), you can set it by running this command

hostnamectl set-hostname vm17538.vps2day.com

After, to download cPanel script you need to have CURL command installed on your server.

yum install curl

And now turn your server into the base installation:

yum groupinstall base -y

Step 2 – Install cPanel

Now you can install cPanel by running only this command:

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

This may take a few minutes to complete the installation.

Step 3 – Configuration

You have successfully installed cPanel. Now you need to configure it.

Open the browser and go to https://youipaddress:2087/. You will get a privacy error, so hit Advanced and after Proceed to unsafe button.

Now login with root user and root password.

To agree the cPanel terms click on Agree to all button.

After, enter email address and name servers.

Click on Finish button and you will be redirected to the Dashboard page.

You have successfully installed and configured cPanel on CentOS.

Enjoy it.