Recently on September,2015 cPanel and WHM 11.50 has been released, After such a long time in this version of cPanel & WHM having support for CentOS 7 / RHEL 7 Version on fresh installations . WHM / cPanel web hosting is the best software to manage website hosting server , email , domain and security management, which can be install in virtual private server (VPS ) as well as on cloud hosting server and dedicated server . This control panel is using most of users, client and companies and it is premier web hosting automated software used by world wide.
cPanel License you can get from here . ==> cPanel LicenseHere in this article we will discuss about latest cPanel & WHM Version 68 feature and prerequisites and installation on fresh CentOS 7 / RHEL 7 Version.
Latest Features of cPanel & WHM webhosting Version 68
Below are some new features of latest version. Support for Virtuozzo 7 Large Amount of Outbound Email Detected notification New Separate file restoration from a backup EasyApache 4 now supports mod_http2 Set SSL/TLS via the command line phpMyAdmin performance setting etc You can read more about new features from cPanel documentation . Click Here
Installation Recommended settingsDisable OS Firewall before installation Recommended Hardware Minimum & Recommended Processor should be 226MHZ Minimum RAM should be 1 GB Recommended RAM should be 2 GB Minimum Disk Space should be 20 GB
Installation of cPanel in CentOS 7 / RHEL 7 / CloudLinux 7Before doing cpanel & WHM installation first ensure your OS Version , RAM and disk space.
Below command for check OS , RAM and diskspace.
Version check Command
# cat /etc/redhat-release
Disk Space Check
[email protected][~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 12G 7.4G 4.7G 62% / devtmpfs 476M 0 476M 0% /dev tmpfs 496M 0 496M 0% /dev/shm tmpfs 496M 20M 477M 4% /run tmpfs 496M 0 496M 0% /sys/fs/cgroup tmpfs 100M 0 100M 0% /run/user/1000
[email protected] [~] # free -m total used free shared buff/cache available Mem: 990 192 224 11 574 586 Swap: 1023 19 1004
Deactivate firewall on CentOS 7 , CloudLinux 7 and RHEL 7
# iptables-save > ~/iptables.rules # systemctl stop firewalld.service Failed to stop firewalld.service: Unit firewalld.service not loaded. # systemctl disable firewalld.service Failed to execute operation: No such file or directory
Disable Security Enhanced Features ( SELinux )If your server running SELinux Features of security, then disable this features . To disable , run the below command. Edit the configuration file /etc/selinux/config and set the parameter SELINUX to disabled, below is my configuration file , after set the parameter you need to reboot the server.
# vim /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted
Installation set up stepscPanel installation need perl package , so we need to install perl before instaalation .
# yum install perlAfter installation of perl, set the hostname of server , the hostname should be in FQDN i.e fully qualified domain name. Below is steps to set hostname in Centos / RHEL 7. Below command to check hostname of server :
# hostnamectlTo set hostname :
# hostnamectl set-hostname cpanel.techtransit.org
OUTPUTOutput will be like below :
[email protected] [~]# hostnamectl Static hostname: cpanel.techtransit.org Icon name: computer-vm Chassis: vm Machine ID: d1f142097d497f24c021d7de9b81cab4 Boot ID: f2b4ef4fb0b14a668ddc89672a20dd7c Virtualization: xen Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-693.11.1.el7.x86_64 Architecture: x86-64
Install cPanel/WHMNow we will download cpanel script on home directory of server , which will install cpanel & WHM .Follow below steps for installation.
# cd /home # curl -o latest -L href="https://securedownloads.cpanel.net/latest">https://securedownloads.cpanel.net/latest # sh latest
2017-12-08 01:45:20 264 ( INFO): cPanel install finished in 20 minutes and 9 seconds! 2017-12-08 01:45:20 1146 ( INFO): Congratulations! Your installation of cPanel & WHM 11.68 is now complete. The next step is to configure your server. 2017-12-08 01:45:20 1146 ( INFO): 2017-12-08 01:45:20 1146 ( INFO): Before you configure your server, ensure that your firewall allows access on port 2087. 2017-12-08 01:45:20 1146 ( INFO): On RHEL, CentOS, and CloudLinux systems, execute /scripts/configure_firewall_for_cpanel to accomplish this. 2017-12-08 01:45:20 1146 ( INFO): 2017-12-08 01:45:20 1146 ( INFO): After ensuring that your firewall allows access on port 2087, you can configure your server. 2017-12-08 01:45:20 1146 ( INFO): 2017-12-08 01:45:20 1146 ( INFO): 1. Open your preferred browser 2017-12-08 01:45:20 1146 ( INFO): 2017-12-08 01:45:20 1146 ( INFO): 2. Type https://126.96.36.199:2087 in the address bar 2017-12-08 01:45:20 1146 ( INFO): 2017-12-08 01:45:20 1146 ( INFO): 3. Enter the word root in the Username text box 2017-12-08 01:45:20 1146 ( INFO): 2017-12-08 01:45:20 1146 ( INFO): 4. Enter your root password in the Password text box 2017-12-08 01:45:20 1146 ( INFO): 2017-12-08 01:45:20 1146 ( INFO): 5. Click the Login button 2017-12-08 01:45:20 1146 ( INFO): 2017-12-08 01:45:20 1146 ( INFO): Visit https://go.cpanel.net/whminit for more information about first-time configuration of your server. 2017-12-08 01:45:20 1146 ( INFO): 2017-12-08 01:45:20 1146 ( INFO): Visit http://support.cpanel.net or https://go.cpanel.net/whmfaq for additional support 2017-12-08 01:45:20 1146 ( INFO): 2017-12-08 01:45:20 1146 ( INFO): Thank you for installing cPanel & WHM 11.68!Now script will run some hours and after installation you will get some output like , time taken in installation as well as server access url and access details, you will use in login root as a user and use password of root user. You will get WHM access like below url.
https://your –server-public-ip:2087 OR https://server-hostname:2087After access of url in browser and put the username password details in access url and accept license agreement, you can configure server networking, ip address and nameserver as according to you , you should have good nice knowledge of System Admin part. Hope you enjoy this post , for any concern please comment here and give us feedback. Thanks [/vc_column_text][/vc_column][/vc_row]