What's new

tutorial Installation of cPanel in CentOS 7

ah nou nhy mou

Moderator
Staff member
Moderator
Established
Awards
2
  • SikatPInoy Staff
  • medal 1
Installation of cPanel in CentOS 7

CentOS 7
Volumes: 0
Newark, NJ
IP Addresses
45.79.176.221

1. Connect to your server

First, you need to connect to your server via SSH.
To connect to your server via SSH as user root, use the following command:

ssh [email protected] -p PORT_22

and replace “IP_ADDRESS” and “PORT_NUMBER” with your actual server IP address and SSH port number.

2. WHM/cPanel installation

Cpanel is written in Perl, so before we start the installation you must make sure that you have Perl installed on your server.
To install Perl in your server, run the following command:

yum install perl

WHM/cPanel also requires that the hostname of your server is a Fully Qualified Domain Name (FQDN) that does not match any of your server’s domains. In our example, we will set the hostname of our server to host.mydomain.com
(you can replace mydomain.com with your actual domain name). To change the hostname of your server you can use the following command:

hostnamectl set-hostname
vpn-elites.ml

To download the cPanel installation script you will need to use the cURL command. If cURL is not present on your server you can install it with the following command:

yum install curl

Before you download the script, let’s change your current directory to /home with the following command:

cd /home

You can now download the latest version of cPanel & WHM with:

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

To start the installation, execute the following command:

sh latest

You can now open your browser and navigate to


This will give you access to WHM (Web Host Manager) from where you can finish the installation in your browser. WHM is a web hosting manager that allows administrative access so you can manage every cPanel hosting account on your server.
With WHM you can create cPanel user accounts, manage them, establish pricing tiers, monitor the services running on the server and the server resources, generate user backups, transfer data between WHM hosts, and more.

To log in, enter “root” as username and use your root password.
 
Top