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.
Before installing cPanel on a server, certain prerequisites must be met:
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.
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.
cPanel requires Perl to function. Install Perl using the following command:
yum install perl -y
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
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
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.
Once the installation is complete, start cPanel with the following command:
/usr/local/cpanel/cpkeyclt
After the installation is complete, you can access cPanel through your web browser. Use the following URLs to access cPanel and WHM:
https://server_ip_address:2087
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.
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.
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.