What is Cpanel/WHM?
cPanel & WHM allows hosting providers and users the ability to automate server management tasks while offering your customers the tools they need to manage their sites.
Prerequisite:
- cPanel & WHM should be installed on a freshly-installed operating system.
- Access the VPS via SSH with root user.
- Run following commands on shell or terminal (All commands run need to be as root user only)
- You need to purchase your own cPanel licenseto use the control panel.
Instruction to install Cpanel/WHM:
Step 1: Set a Valid hostname for your VPS using below command.
#hostname
Step 1:
Set a Valid hostname for your VPS.
Command > #hostname
Step 1:
Set a Valid hostname for your VPS.
Command > #hostname
Step 2: Disable SELinux on your VPS using below command.
#sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/’ /etc/selinux/config
Step 3: Download and run below script to install the Cpanel/WHM and let the installation to be completed.
#cd /home && curl -o latest -L
https://securedownloads.cpanel.net/latest && sh latest
(Note: You can run installation in screen in order to avoid disconnection to the server)
For port management of Cpanel you can refer to their official URL: https://documentation.cpanel.net/display/CKB/How+to+Configure+Your+Firewall+for+cPanel+Services
Step 4: Set a complex password for your WHM
#passwd root
Step 5: As the installation gets completed you can access to your WHM account referring the below details:
URL: https://
Username: root
Password: Password of your root user
Was this article helpful?