Main menu

Pages

How to Install cPanel and WHM in CentOS 8

How to Install cPanel and WHM in CentOS 8





How to install cPanel in centos 8 many new admins didn't know that, cPanel is commonly known control panel for web hosting, best and intuitive commercial control panel for web hosting services.
 It is full of features and can be used via a robust graphical user interface to deal with all shared, reseller and business hosting services and much more.

It has a cPanel and Web Host Manager(WHM), Making hosting more straightforward and easy for web admins:
  • WHM provides root and reseller level-access interface, where consumers can manage settings linked to host management and accounts management.
  • While cPanel offers user level access interface to control a web hosting accounts on the server.

 Characteristics of cPanel/WHM

  • Currently offers AutoSSL encouraging Proxy Subdomains.
  • Allows You to see SSL Status from cPanel.
  • Supports surgeries like Backups, Migrations and restorations at a really simple and easy method.
  • Supports excellent DNS and email server direction for server and in addition to customer account.
  • Simplifies direction (start/stop/enable/disable) of providers on server.
  • Easy integration using Phpmyadmin handle your MySQL databases from internet browser.
  • Enables integration using WHMCS to automate billing direction and much more.

I will describe in this article how to install cPanel and WHM on RHEL/CentOS 8 and insure initial configurations to manage cPanel and WHM.

Requirements installation of cPanel/WHM on Centos 8 

  1. A clean fresh minimal installation of CentOS 8 server.
  2. Minimum of 1 GB RAM but  2 GB is recommended.
  3.  20GB of free disk space At least but 40 GB recommended.
  4. Valid cPanel license.
  5. Standard hostname  Fully Qualified Domain Name.
  6. Installation of Perl.
 Before we proceed into the Setup as below, you must note that for the following important points:
  • Once You've set up cPanel/WHM, it can not be eliminated out of your system. You will have to reinstall your operating system to remove it.
  • CPanel is commercial software and requires a license to function, Nevertheless, there's a 15 day trial (that's automatically actuated once You put in cPanel), you're able to install your applications working with the trial then Get the software later.

 Step by Step How to Install cPanel and WHM in CentOS 8

1. Make Sure Your host has a regular hostname (FQDN or Fully-qualified Domain Name Name ), otherwise put it as follows (in this instance, cloud is your hostname and also yourdomain.com is your domain name ):-


# hostnamectl set-hostname cloud.yourdomain.com

2. CPanel is written in Perl, so make sure that you own Perl installed in your own server, other shrewd conduct the control below to set it up in your own system.
# yum install perl


3. You Don't have to conduct any orders to put in It, there's a car installer script assembled for you personally. All you need to do is down load the cPanel installer script with an cURL control, in the event you have no the cURL control installed, first set it up as this.

# yum install curl


4. Subsequently download the most current installer script into directory.

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


5. Currently, run the vehicle installer script. Be aware that in the event you've logged into the machine with SSH, we highly advise running cPanel automobile installer script in screen style mode using screen command, since it will take 40 60 mins to finish the setup based upon your own server tools and Web connection rates.
# screen

# sh latest


 As below you will screen as it:-

Verifying archive integrity... All good.
Uncompressing cPanel & WHM Installer.....
  
  Installer Version v00069 tjfdlkjfgkldieu45345j34kl5j3lf15f513a4f5263

Beginning main installation.
2019-12-22 04:52:33  720 ( INFO): cPanel & WHM installation started at: Sun Dec  22 04:52:33 2019!
2019-12-22 04:52:33  721 ( INFO): This installation will require 20-50 minutes, depending on your hardware.
2019-12-22 04:52:33  722 ( INFO): Now is the time to go get another cup of coffee/jolt.
2019-12-22 04:52:33  723 ( INFO): The install will log to the /var/log/cpanel-install.log file.
2019-12-22 04:52:33  724 ( INFO): 
2019-12-22 04:52:33  725 ( INFO): Beginning Installation v3...
2019-12-22 04:52:33  428 ( INFO): CentOS 8 (Linux) detected!
2019-12-22 04:52:33  444 ( INFO): Checking RAM now...
2019-12-22 04:52:33  233 ( WARN): 
2019-12-22 04:52:33  233 ( WARN): To take full advantage of all of cPanel & WHM's features,
2019-12-22 04:52:33  233 ( WARN): such as multiple SSL certificates on a single IPv4 Address
2019-12-22 04:52:33  233 ( WARN): and significantly improved performance and startup times,
2019-12-22 04:52:33  233 ( WARN): we highly recommend that you use CentOS version 8.
2019-12-22 04:52:33  233 ( WARN): 
2019-12-22 04:52:33  233 ( WARN): Installation will begin in 5 seconds.
....

 At this point, settle back and relax, perhaps, you'll be able to catch yourself a cup of Tea as you wait the cPanel installer script to finish the installation.



Important: Some times, cPanel Installer script is not able to update the license as a result of anti virus or resolver entries and you're going to notice trial warning in the page. You can do it manually with after command:-

# /usr/local/cpanel/cpkeyclt


Don't forget at the beginning we mentioned , cPanel is for user level Access and WHM is for root level access, you want to create an account together with option readily available in WHM. In this case , we created a test account with the username"itblog" to reveal to you the perspective of cPanel for users.

Below are useful lists of cPanel Back End and config documents you may Want to know about prior to needs to work with Cpanel and WHM:-


Configuration Files for Important cPanel Services

  •     Configuration file for Apache : /etc/httpd/conf/httpd.conf
  •     Configuration file for Exim mail server:/etc/exim.conf
  •     Configuration file for Named : /etc/named.conf
  •     Configuration file for ProFTP and Pureftpd :/etc/proftpd.conf and /etc/pure-ftpd.conf
  •     Configuration file for Cpanel user : /var/cpanel/users/username
  •     Configuration file for Cpanel configuration Tweak settings : /var/cpanel/cpanel.config
  •     Configuration file for Networking : /etc/sysconfig/network
  •     Information for Addons, parked and subdomain: /etc/userdomains
  •     Configuration file for Cpanel update: /etc/cpupdate.conf
  •     Configuration file for Clamav: /etc/clamav.conf
  •     Configuration file for Mysql: /etc/my.cnf
  •     Configuration file for PHP ini : /usr/local/lib/php.ini

Backend Files for cPanel 

  • Cpanel directory : /usr/local/cpanel
  • Third Party tools : /usr/local/cpanel/3rdparty/
  • Cpanel addons directory : /usr/local/cpanel/addons/
  • Base files like Phpmyadmin, skins : /usr/local/cpanel/base/
  • cPanel binaries : /usr/local/cpanel/bin/
  • CGI files : /usr/local/cpanel/cgi-sys/
  • Cpanel access & error log files : /usr/local/cpanel/logs/
  • Whm related files : /usr/local/cpanel/whostmgr/

For more info visit please visit this cPanel Homepage.

That's all! In this article, we described how to put in cPanel and WHM on RHEL/CentOS 7 and covered initial configurations to manage cPanel and WHM. Remember to share any valuable thoughts while in the feedback form below.
reactions

Comments

Table Of Contents