How to Install cPanel WHM on Your Server
cPanel & WHM (WebHost Manager) is one of the most popular hosting control panels, offering a user-friendly interface and a powerful suite of tools for managing web hosting accounts. Installing cPanel WHM on your server is straightforward, but there are a few prerequisites and best practices to keep in mind to ensure a smooth installation process.
This guide will walk you through the requirements, preparation steps, and the installation process, so you can get cPanel WHM up and running quickly and efficiently.
1. Prerequisites for Installing cPanel WHM
Before starting the installation, ensure that your server meets the following requirements:
1.1. Supported Operating Systems
- CentOS 7 or 8
- AlmaLinux 8
- Rocky Linux 8
These operating systems are officially supported by cPanel and provide the best compatibility and stability.
1.2. System Resources
- Minimum Requirements:
- 1 GB RAM (2 GB recommended)
- 20 GB of free disk space
- A fresh OS installation without any control panels installed
- Recommended Resources:
- 2 GB RAM or more
- 40 GB of free disk space or more for additional websites and email accounts
1.3. Internet Connectivity
- A reliable internet connection is required, as the installer will download packages and updates from the cPanel servers.
1.4. Server Access
- Root Access: You’ll need root (superuser) access to the server via SSH to perform the installation.
2. Preparing Your Server
Before installing cPanel WHM, it’s important to prepare your server to prevent conflicts or errors:
2.1. Fresh Operating System Installation
- Start with a clean OS installation. If you’ve previously installed other control panels or web servers, consider reinstalling the operating system to ensure no leftover configurations interfere with the cPanel WHM installation.
2.2. Disable SELinux (Optional)
- Although cPanel WHM works with SELinux, it’s often easier to start with SELinux disabled:
- Check SELinux status with:
sestatus - Temporarily disable it by editing
/etc/selinux/configand settingSELINUX=disabled, then reboot the server.
- Check SELinux status with:
2.3. Update Your System
Update your system packages to the latest versions:
yum update -y
3. Installing cPanel WHM
Once the server is prepared, follow these steps to install cPanel WHM:
3.1. Download and Run the cPanel Installer
Log in to Your Server via SSH:
ssh root@your_server_ipInstall cURL or wget (if not installed):
yum install curl wget -yDownload the Installer Script:
cd /home curl -o latest -L https://securedownloads.cpanel.net/latestRun the Installer Script:
sh latest
3.2. Follow the On-Screen Instructions
- The installation process will take some time. The installer will download the necessary packages, configure services, and set up WHM. This process is largely automated, so you’ll just need to wait until it completes.
3.3. Initial WHM Setup
- Access WHM:
- After installation, access WHM by navigating to
https://your_server_ip:2087in your web browser.
- After installation, access WHM by navigating to
- Log in with Your Root Credentials:
- Use the root username and password that you set up during the initial server configuration.
- Complete the Setup Wizard:
- WHM will guide you through a few initial configuration steps, including setting up your hostname, nameservers, and licensing.
4. Verifying the Installation
4.1. Check WHM Functionality
- Once you’ve logged in, verify that the dashboard loads correctly and that you can access all the menus and settings.
- Confirm that key services (e.g., Apache, MySQL, Exim) are running as expected.
4.2. Add an Account and Test a Website
- Create a cPanel account through WHM, upload a test website, and confirm that it loads properly.
5. Post-Installation Tips
- Keep Your System Updated:
- Regularly update cPanel/WHM and your server’s packages to ensure security and performance.
- Backups:
- Set up automated backups to protect your data and configuration settings.
- Security Enhancements:
- Consider enabling a firewall, configuring secure SSH access, and using cPanel’s built-in security tools (such as the ModSecurity Web Application Firewall).
Final Thoughts
Installing cPanel WHM on your server is a straightforward process that unlocks a powerful suite of tools for managing web hosting accounts. By following the steps outlined above, you’ll have a fully functional cPanel WHM environment that’s ready to support your hosting needs. With regular maintenance and updates, cPanel WHM can provide a reliable, user-friendly platform for managing multiple websites, email accounts, and server resources.
yorum Yap
E-posta hesabınız yayımlanmayacak. Gerekli alanlar işaretlendi *