X
X
X
X

Knowledge Base

HomepageKnowledge BaseHow to Install cPanel on a Server?

How to Install cPanel on a Server?

cPanel is one of the most preferred control panels in web hosting management. With its user-friendly interface and wide range of features, it is widely used by both novice users and professionals. This article provides a detailed step-by-step guide on how to install cPanel on a server.

Prerequisites

Before installing cPanel on a server, certain prerequisites must be met:

  • Server: cPanel supports only CentOS, CloudLinux, and Red Hat Enterprise Linux (RHEL) operating systems. Your server must have one of these operating systems installed.
  • Root Access: You must have root access to your server.
  • Minimum Hardware Requirements:
    • RAM: At least 1 GB (2 GB or more recommended)
    • Disk Space: At least 20 GB of available disk space
    • Processor: 1.1 GHz or faster processor

Step-by-Step Installation Guide

Step 1: Prepare the Server

Ensure that a clean operating system is installed on your server and that you have root access. Also, make sure no control panel or web server is installed, as this may cause the cPanel installation to fail.

Step 2: Update the Server

Before starting the installation, ensure that all packages on your server are up to date. Log in as root via SSH and run the following command:

yum update -y

This command will update all the packages on your server.

Step 3: Install Perl

cPanel requires Perl to function. Install Perl using the following command:

yum install perl -y

Step 4: Set the Hostname

Before installing cPanel, you need to set the hostname of your server. This can be done with the following command:

hostnamectl set-hostname hostname.domain.com

Step 5: Download the cPanel Installation File

Before starting the installation, download the cPanel installation file. This can be done via SSH using the following command:

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

Step 6: Start the cPanel Installation

After downloading the cPanel installation file, start the installation with the following command:

sh latest

This command will start the cPanel installation process. The installation may take several minutes depending on your internet connection speed and server performance.

Step 7: Complete the Installation

Once the installation is complete, start cPanel with the following command:

/usr/local/cpanel/cpkeyclt

Step 8: Access cPanel

After the installation is complete, you can access cPanel through your web browser. Use the following URLs to access cPanel and WHM:

  • For WHM (Web Host Manager): https://server_ip_address:2087
  • For cPanel: https://server_ip_address:2083

You can reach these pages by entering your server IP address. Log in to WHM with the root username and password.

Step 9: Activate the cPanel License

To use cPanel, you need a license. After logging into WHM, activate your cPanel license by entering your license key in the license activation section.

Conclusion

By following these steps, you can easily install cPanel on your server. The cPanel installation process greatly simplifies web hosting management. Once the installation is complete, you can take advantage of all the features that cPanel offers to manage your website effectively.

Can't find the information you are looking for?

Create a Support Ticket
Did you find it useful?
(32 times viewed / 0 people found it helpful)

Top