WHM/cPanel is a widely used powerful control panel in the web hosting industry known for its user-friendly interface, security, and flexible features. It can be installed on various Linux distributions including CentOS 7, Ubuntu 20, and AlmaLinux 8. This guide will provide step-by-step instructions on how to install WHM/cPanel on these operating systems.
Prerequisites
- A server with root access.
- Operating systems: CentOS 7, Ubuntu 20, or AlmaLinux 8.
- An internet connection.
- At least 1GB RAM and 20GB of free disk space.
General Steps
- Update the System: Use the following commands to complete the updates for each operating system.
# For CentOS 7 and AlmaLinux 8 yum update -y
# For Ubuntu 20 (WHM/cPanel does not officially support, but alternative methods may be available)
apt update && apt upgrade -y
Installing WHM/cPanel on CentOS 7 and AlmaLinux 8
-
Download the WHM/cPanel Installation Script:
curl -o latest -L https://securedownloads.cpanel.net/latest
-
Start the Installation: Execute the downloaded script to begin the installation.
sh latest
-
Monitor the Installation: The installation process can take several hours. Watch the progress on the screen.
Installing WHM/cPanel on Ubuntu 20
- Officially, Ubuntu 20 is not supported by WHM/cPanel. However, third-party scripts or alternative methods might be used to install WHM/cPanel on Ubuntu. These installations are typically community-supported and utilize unofficial resources.
Post-Installation Steps for WHM/cPanel
- Access WHM: After the installation is complete, visit
http(s)://yourServerIPAddress:2087
to log into WHM. - Enter the License Key: Input your WHM license key or request a trial license.
- Complete Initial Setup: Configure basic settings such as username, password, and contact information.
Troubleshooting and Tips
- Firewall Settings: Ensure your firewall settings are not blocking ports 2087, 2083, 80, and 443 before installation.
- Support and Resources: Refer to WHM/cPanel's official documentation and community forums for encountered issues.
- Regular Updates: Keep your system and cPanel regularly updated.
Conclusion
WHM/cPanel offers a robust set of features and a user-friendly interface for effective web hosting management on CentOS 7 and AlmaLinux 8. While there's no official support for Ubuntu 20, installation might be possible through alternative methods. This guide provides the foundational steps and best practices for WHM/cPanel installation. By carefully following each step and performing regular maintenance, you can ensure a smooth hosting experience.