Setting up a dedicated server without a control panel can feel like navigating a ship without a compass. That’s where cPanel comes in—the industry-leading web hosting control panel that simplifies server management for millions of websites worldwide.
Whether you’re a hosting provider setting up client accounts or a business owner taking control of your web infrastructure, this guide walks you through every step of the cPanel installation process on your dedicated server.
What is cPanel and Why Do You Need It?
cPanel is a Linux-based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a website. Paired with Web Host Manager (WHM), it becomes a complete server management solution.
Key Benefits of cPanel for Dedicated Servers
- Simplified server management – Manage domains, emails, databases, and files through an intuitive interface
- Account provisioning – Create and manage multiple hosting accounts with resource limits
- Security features – Built-in tools for SSL certificates, firewalls, and malware scanning
- Automation – Automated backups, updates, and monitoring
- Feature manager – Control which features are available to different account types
Prerequisites for cPanel Installation
Before starting the cPanel installation process, ensure your dedicated server meets these requirements.
Hardware Requirements
| Component | Minimum | Recommended |
|---|---|---|
| RAM | 2 GB | 4 GB or higher |
| Disk Space | 20 GB | 40 GB or higher |
| Processor | 1.1 GHz | Multi-core processor |
Supported Operating Systems
cPanel supports the following Linux distributions:
- AlmaLinux 8 and 9
- Rocky Linux 8 and 9
- CloudLinux 8 and 9
- Ubuntu 22.04 LTS (experimental)
- CentOS 7 (legacy support)
Pre-Installation Checklist
- Fresh OS installation (no other control panels installed)
- Root access to your dedicated server
- Valid hostname configured (FQDN format: server.yourdomain.com)
- Static IP address assigned
- Active internet connection
- cPanel license (trial or purchased)
Step-by-Step cPanel Installation Guide
Follow these steps to install cPanel on your dedicated server running CentOS or AlmaLinux.
Step 1: Connect to Your Server via SSH
Access your server using SSH with root credentials:
ssh root@your_server_ip
Step 2: Update Your Operating System
Before installation, update all system packages:
# For AlmaLinux/Rocky Linux/CentOS
yum update -y
# For Ubuntu
apt update && apt upgrade -y
Step 3: Configure Your Hostname
The hostname setup is critical for cPanel to function correctly. Set a fully qualified domain name (FQDN):
hostnamectl set-hostname server.yourdomain.com
Verify the hostname:
hostname -f
Step 4: Disable NetworkManager (CentOS/RHEL-based systems)
cPanel manages network configurations independently. Disable NetworkManager to prevent conflicts:
systemctl stop NetworkManager
systemctl disable NetworkManager
systemctl enable network
systemctl start network
Step 5: Configure Firewall and Open cPanel Ports
cPanel requires specific ports to be open. Here are the essential cPanel ports:
| Port | Service | Purpose |
|---|---|---|
| 2082 | cPanel | cPanel access (HTTP) |
| 2083 | cPanel | cPanel access (HTTPS) |
| 2086 | WHM | Web Host Manager (HTTP) |
| 2087 | WHM | Web Host Manager (HTTPS) |
| 2095 | Webmail | Webmail access (HTTP) |
| 2096 | Webmail | Webmail access (HTTPS) |
Open these ports using firewalld:
firewall-cmd --permanent --add-port=2082/tcp
firewall-cmd --permanent --add-port=2083/tcp
firewall-cmd --permanent --add-port=2086/tcp
firewall-cmd --permanent --add-port=2087/tcp
firewall-cmd --permanent --add-port=2095/tcp
firewall-cmd --permanent --add-port=2096/tcp
firewall-cmd --reload
Step 6: Download and Run the cPanel Installer
Navigate to the home directory and download the installation script:
cd /home
curl -o latest -L https://securedownloads.cpanel.net/latest
sh latest
Step 7: Monitor the Installation Progress
The installer will display progress in your terminal. You can also monitor the installation log:
tail -f /var/log/cpanel-install.log
Post-Installation WHM Configuration
After the installation completes, access WHM to complete the initial setup wizard.
Accessing WHM for the First Time
Open your browser and navigate to:
https://your_server_ip:2087
Login using:
- Username: root
- Password: Your server’s root password
Complete the Initial Setup Wizard
WHM’s initial setup wizard guides you through essential configurations:
Agreement and Contact Information
- Accept the cPanel license agreement
- Enter administrator email address
- Configure contact preferences for alerts
Networking Configuration
- Verify server hostname
- Configure resolver settings (DNS)
- Set main network interface
Nameserver Configuration
Choose your nameserver setup:
- BIND – Traditional DNS server (recommended)
- PowerDNS – Alternative DNS server with MySQL backend
- Disabled – Use external DNS services
Service Configuration
- Configure FTP server (Pure-FTPd recommended)
- Select mail server (Dovecot recommended)
- Enable cPHulk brute force protection
License Activation
After initial setup, activate your cPanel license:
- Navigate to WHM → Server Configuration → Manage cPanel License
- If you have a license, it will be automatically detected by IP
- For trial licenses, click “Get Trial License”
- Verify license status shows as “Active”
Essential Post-Installation Tasks
Complete these configurations to optimize your cPanel dedicated server setup.
Configure PHP Versions
Set up multiple PHP versions using EasyApache 4:
- Navigate to WHM → Software → EasyApache 4
- Click “Customize” on your current profile
- Select PHP versions (7.4, 8.0, 8.1, 8.2, 8.3)
- Choose required PHP modules
- Review and provision changes
Set Up Package Creation
Create hosting packages to standardize account provisioning:
- Go to WHM → Packages → Add a Package
- Define resource limits:
- Disk quota
- Bandwidth limit
- Maximum email accounts
- Maximum databases
- Maximum addon domains
- Configure Feature Manager settings
- Save the package
Configure Feature Manager
Control which cPanel features are available to users:
- Navigate to WHM → Packages → Feature Manager
- Create custom feature lists
- Enable or disable specific features:
- File Manager access
- SSH access
- Backup tools
- Database management
- Email tools
- Assign feature lists to packages
Security Hardening
Implement these security measures:
Enable Two-Factor Authentication
- Go to WHM → Security Center → Two-Factor Authentication
- Enable for all accounts
- Configure using authenticator apps
Configure SSL/TLS Settings
- Navigate to WHM → Service Configuration → Apache Configuration → Global Configuration
- Set minimum TLS version to 1.2
- Disable weak cipher suites
Enable AutoSSL
- Go to WHM → SSL/TLS → Manage AutoSSL
- Select cPanel (Powered by Sectigo) provider
- Configure automatic certificate renewal
Creating Your First cPanel Account
With WHM configured, create a hosting account:
Account Provisioning Steps
- Navigate to WHM → Account Functions → Create a New Account
- Enter account details:
- Domain name
- Username (auto-generated or custom)
- Password (use strong password generator)
- Email address
- Select package and settings:
- Choose hosting package
- Select feature list
- Configure DNS settings
- Click “Create” to provision the account
Accessing the cPanel Account
Users can access their cPanel through:
https://yourdomain.com:2083
or
https://your_server_ip:2083/~username
Troubleshooting Common Installation Issues
Address these common problems during cPanel installation:
Installation Fails at Network Check
Solution: Ensure your hostname resolves correctly:
# Check hostname resolution
dig +short server.yourdomain.com
# Verify /etc/hosts file
cat /etc/hosts
License Not Found Error
Solution: Your IP may not be registered. Contact your license provider or run:
/usr/local/cpanel/cpkeyclt
Port Connection Refused
Solution: Verify firewall settings and service status:
# Check if cPanel services are running
/scripts/restartsrv_cpsrvd
# Verify port is listening
netstat -tlnp | grep 2087
Insufficient Disk Space
Solution: Clean up unnecessary files:
# Check disk usage
df -h
# Clear yum cache
yum clean all

Need Help Deciding?
Tell us your traffic, budget, and goals. We’ll recommend the right hosting – VPS or Dedicated.
💬 Response within 2 hours during UAE business hours
Maintaining Your cPanel Server
Keep your server running optimally with regular maintenance:
Regular Updates
Enable automatic updates in WHM:
- Navigate to WHM → Server Configuration → Update Preferences
- Set update tier (STABLE recommended for production)
- Enable automatic daily updates
Backup Configuration
Configure comprehensive backups:
- Go to WHM → Backup → Backup Configuration
- Enable scheduled backups
- Configure retention period
- Set backup destination (local or remote)
Monitoring Server Resources
Use WHM’s built-in monitoring:
- Service Status – Monitor running services
- Process Manager – Track resource usage
- Server Status – View system information
Conclusion
Installing cPanel on your dedicated server transforms complex server management into a streamlined experience. With WHM configuration complete and accounts provisioned, you’re ready to host websites professionally.
Remember to keep your server updated, maintain regular backups, and implement security best practices. For businesses seeking hassle-free cPanel hosting, consider managed dedicated servers where experts handle the technical complexities while you focus on growing your business.
Frequently Asked Questions
How to install SSL certificate in cPanel?
To install an SSL certificate in cPanel, log in to your cPanel account and navigate to Security → SSL/TLS. Click on “Manage SSL sites” under Install and Manage SSL. Select your domain from the dropdown, then paste your certificate (CRT), private key, and CA bundle into the respective fields. Click “Install Certificate” to complete the process. Alternatively, use AutoSSL for free automated certificates by going to SSL/TLS Status and clicking “Run AutoSSL.”
How to install cPanel on Windows 10?
cPanel cannot be installed directly on Windows 10 as it’s designed exclusively for Linux operating systems. However, you can run cPanel on Windows 10 using virtualization. Install VirtualBox or VMware Workstation, create a virtual machine with AlmaLinux or Rocky Linux, allocate sufficient resources (minimum 2GB RAM, 20GB disk), and then install cPanel within the Linux virtual machine following the standard installation process. For development purposes, consider using Docker with CentOS images instead.
How to install cPanel?
To install cPanel, first ensure you have a fresh Linux server (AlmaLinux 9, Rocky Linux 9, or CentOS 7) with root access. Connect via SSH, update your system with yum update -y, and configure your hostname using hostnamectl set-hostname server.domain.com. Navigate to /home directory with cd /home, download the installer using curl -o latest -L https://securedownloads.cpanel.net/latest, and run it with sh latest. The installation takes 30-60 minutes. Once complete, access WHM at https://your-ip:2087 to complete the setup wizard.
How to install cPanel on CentOS 7?
To install cPanel on CentOS 7, SSH into your server as root. Update the system: yum update -y. Set your hostname: hostnamectl set-hostname server.yourdomain.com. Disable NetworkManager: systemctl disable NetworkManager && systemctl stop NetworkManager. Navigate to /home and run the installer: cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest. Note that CentOS 7 reaches end-of-life status, so consider using AlmaLinux 9 or Rocky Linux 9 for new installations to ensure long-term security updates and support.
How to install cPanel on Windows 7?
cPanel is not compatible with Windows 7 or any Windows operating system natively. It requires a Linux environment to function. For Windows 7 users wanting to use cPanel, the options are limited due to the age of the operating system. You could install VirtualBox (if your hardware supports virtualization), create a Linux virtual machine with at least 2GB RAM and 20GB storage, install a supported Linux distribution like CentOS 7, and then install cPanel within that virtual environment. However, upgrading to a more recent operating system or using a dedicated Linux server is recommended for production use.
How to install cPanel on Windows Server?
cPanel cannot be installed on Windows Server as it’s developed exclusively for Linux distributions. For Windows Server environments, consider alternatives like Plesk (which supports Windows Server), or use Hyper-V to create a Linux virtual machine where cPanel can be installed. If you need cPanel specifically, provision a separate Linux dedicated server or VPS for your web hosting needs. Many organizations run Windows Server for internal applications while using Linux servers with cPanel for web hosting purposes.
