TRENDING
  • Linux
  • Shell Script
  • Cloud
  • DevOps
  • About US
SUBSCRIBE
  • CLOUD
  • DEVOPS
  • LINUX
  • SHELL SCRIPT
Reading: How to Install cPanel and WHM on AlmaLinux / Rocky Linux
Share
TechBrownTechBrown
Aa
  • CLOUD
  • DEVOPS
  • LINUX
  • SHELL SCRIPT
Search
  • CLOUD
  • DEVOPS
  • LINUX
  • SHELL SCRIPT
Follow US
© 2014 - 2022 TechBrown. All Rights Reserved.
Linux

How to Install cPanel and WHM on AlmaLinux / Rocky Linux

January 7, 2016
Share
4 Min Read
SHARE
Contents
Step-1 (Install cPanel & WHM Package Dependencies)Step-2 (Download the cPanel Scripts)Step-3 (Configure the firewall for cPanel)Step-4 (Check your hostname and Server IP Address)Step-5 (Open the cPanel in Web browser)Step-6 (Login to cPanel and WHM and access the dashboard panel)

cPanel is an commercial enterprise grade web hosting control panel AlmaLinux / Rocky Linux / Amazon Linux. It is the most awarded and recommended cPanel for latest enterprise Linux. It is designed for hosting needs and used by most of the hosting companies for dedicated hosting, semi-dedicated hosting, shared hosting as well as cloud VPS hosting providers.

Step-1 (Install cPanel & WHM Package Dependencies)
# dnf install perl*

Temporary disable the firewall during the installation of cPanle and WHM

# systemctl stop firewalld

Set host name of server to FQDN – Fully Qualified Domain Name

[[email protected] ~]# hostnamectl set-hostname cpanel.techbrown.com

Sample Output

 Static hostname: cpanel.techbrown.com
 Icon name: computer-laptop
 Chassis: laptop
 Machine ID: b292a5b69a2343149ed86f7e6fe782c8
 Boot ID: b50bcafaed9a4ab0941b800ba4356198
 Operating System: CentOS Linux 7 (Core)
 CPE OS Name: cpe:/o:centos:centos:7
 Kernel: Linux 3.10.0-229.el7.x86_64
 Architecture: x86_64

Change the directory to home

# cd ~
Step-2 (Download the cPanel Scripts)
# wget https://securedownloads.cpanel.net/latest

Run the Downloaded cPanel Installation Scripts

# bash latest

Note: The cPanel require several minutes to complete the installation . Please be patience during Installation periods. Depending your internet connection and system hardware.

Sample Output

2016-01-06 22:14:58 594 ( INFO): cPanel & WHM installation started at: Wed Jan 6 22:14:58 2016!
2016-01-06 22:14:58 595 ( INFO): This installation will require 20-50 minutes, depending on your hardware.
2016-01-06 22:14:58 596 ( INFO): Now is the time to go get another cup of coffee/jolt.
2016-01-06 22:14:58 597 ( INFO): The install will log to the /var/log/cpanel-install.log file.
2016-01-06 22:14:58 598 ( INFO):
2016-01-06 22:14:58 599 ( INFO): Beginning Installation v3...
2016-01-06 22:14:58 392 ( INFO): CentOS 7 (Linux) detected!
2016-01-06 22:14:58 408 ( INFO): Checking RAM now...
2016-01-06 22:14:58 467 ( INFO): Validating that the system hostname ('cpanel.techbrown.com') is a FQDN...
2016-01-06 22:14:58 1277 (DEBUG): - ssystem [BEGIN]: /usr/bin/rdate -s rdate.cpanel.net
2016-01-06 22:15:04 1277 (DEBUG): - ssystem [END]
2016-01-06 22:15:04 1279 ( INFO): The system set the clock to: Wed Jan 6 22:15:04 2016
2016-01-06 22:15:04 1289 ( INFO): The system changed the clock by 6 seconds.
2016-01-06 22:15:04 995 ( INFO): The installation process will now set up the necessary empty cpanel directories.
2016-01-06 22:15:04 1015 ( INFO): The installation process will now ensure that GPG is set up properly before it imports keys.
2016-01-06 22:15:04 1018 ( INFO): The installation process will now import GPG keys for yum.
2016-01-06 22:15:04 916 ( INFO): Congratulations! Your installation of cPanel & WHM 11.52 is now complete.
Step-3 (Configure the firewall for cPanel)

To start the firewall

# systemctl start firewalld

After Installing the cPanel you need to setup the firewall to configure your server for cPanel.

# cd /usr/local/cpanel/
# bash /scripts/configure_firewall_for_cpanel
Step-4 (Check your hostname and Server IP Address)

For Hostname

# hostnamectl

For Server IP Address

# ifconfig

Note: You need to note the Hostname and Server IP address for further steps of configuration of cPanel.

Step-5 (Open the cPanel in Web browser)

Open the web browser like Mozilla Firefox , Google Chrome, etc. Type the given address in navigation bar.

For WHM with SSL

https://SERVER-IP-ADDRESS:2087 OR https://SYSTEM-HOSTNAME-(FQDN):2087

For WHM without SSL

http://SERVER-IP-ADDRESS:2086 OR http://SYSTEM-HOSTNAME-(FQDN):2086

For cPanel with SSL

https://SERVER-IP-ADDRESS:2083 OR https://SYSTEM-HOSTNAME-(FQDN):2083

For cPanel without SSL

http://SERVER-IP-ADDRESS:2082 OR http://SYSTEM-HOSTNAME-(FQDN):2082

Step-6 (Login to cPanel and WHM and access the dashboard panel)

Enter the root login credentials like username and passwords and finally hit on Login button.
cpanel-whm-login
After successfully login you need to access the dashboard panel of cPanel and WHM.
cpanel-whm-dashboard

Congratulation now you have installed the cPanel and WHM on AlmaLinux / Rocky Linux / Amazon Linux.

You Might Also Like

How to Optimize MySQL Performance on AlmaLinux / Rocky Linux

How to Enable TLS 1.3 on Apache and Nginx

5 Security Tips to Protect your WordPress Website from Hackers

How to Enable AES-128 Bit SSL Cipher with TLS 1.3 on Nginx Web Server

How to Set Up NGINX Web Server on AlmaLinux / Rocky Linux

Sign Up For Newsletter

Be keep up! Get the latest articles delivered straight to your inbox.

TechBrown Solutions January 7, 2016
Share this Article
Facebook TwitterEmail Print
Share
Leave a comment Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

TRENDING

Linux

How to Install Vesta Control Panel on Ubuntu / AlmaLinux / Rocky Linux

Linux

How to Create User without using Useradd Command on AlmaLinux / Rocky Linux

Linux

How to Upgrade WordPress Server from Old Ubuntu to Latest Ubuntu LTS

Linux

How to Mount NTFS File System on AlmaLinux / Rocky Linux

You Might Also Like

Linux

How to Optimize MySQL Performance on AlmaLinux / Rocky Linux

October 19, 2021
Linux

How to Enable TLS 1.3 on Apache and Nginx

March 14, 2021
Linux

5 Security Tips to Protect your WordPress Website from Hackers

November 8, 2020
Linux

How to Enable AES-128 Bit SSL Cipher with TLS 1.3 on Nginx Web Server

November 7, 2020

Always Stay Up to Date

Subscribe to our newsletter to get our newest articles instantly!

Follow US on Social Media

Facebook Twitter Youtube Rss

© 2014 - 2022 Techbrown. All Rights Reserved.

  • About Us
  • Terms of Service
  • Cookie Policy
  • Privacy Policy
By using this site, you agree to the Privacy Policy, Cookie Policy and Terms of Service.
Accept

Removed from reading list

Undo
AdBlock Detected
Our site is an advertising supported site. Please whitelist to support our site.
Okay, I'll Whitelist
Welcome Back!

Sign in to your account

Lost your password?