cPanel is the industry standard for allowing you manage and administer your Linux server via a nice and convenient web GUI. The installation of this software allows you to do most complicated command line tasks with the click of a button. cPanel is a commercial software that has a monthly license fee for its use.
If you don’t have the latest version, please update your CentOS. We can simply do it with yum package installer.
yum update
Install perl package
yum install perl
Set the FQDN hostname for the server as cPanel requires it must be correct. If it is already configured, you can skip. If not then make sure the below config files are set.
hostname cpanel.example.com
At this stage our system is prepared for installing cPanel. Use following commands to complete installation. This process will take time as per your network speed and system configuration.
We can download latest version cPanel installer file and run installer under /home directory:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
Now, you need to wait for the cPanel installer script to complete its installation. The process will take approximately 60 to 90 minutes but it is largely depending on your server internet connection and performance.
Verifying archive integrity... All good. Uncompressing cPanel & WHM Installer.............. ____ _ ___| _ \ __ _ _ __ ___| | / __| |_) / _` | '_ \ / _ \ | | (__| __/ (_| | | | | __/ | \___|_| \__,_|_| |_|\___|_| Installer Version v00029 r6849459174e3809f72de2bef81427a8a45399d66 Beginning main installation. ------------------------------------ ------------------------------------
Run script to accomplish firewall for cPanel
/usr/local/cpanel/scripts/configure_firewall_for_cpanel
Define a password for root login to WHM
passwd root