Setup & Tech Guides9 min read•Last updated: •By SkyRain Cloud Team

How to Install and Configure cPanel on a Dedicated Server

cPanel and WHM are the most familiar hosting control panels for agencies, resellers and businesses that host many websites. Clients know the interface, email and DNS are built in, and day-to-day tasks need no command line. If you have a new dedicated server and want that experience, you can install cPanel on a dedicated server yourself in about an hour, as long as you prepare the server correctly first.

The short answer: start from a fresh, supported operating system with a proper hostname, get a cPanel licence for your server's IP, run the official installer as root, then complete the WHM setup wizard and harden the server. This guide covers requirements, licensing, the installation steps and the first configuration tasks, plus when another panel might suit you better.

Quick answer

To install cPanel on a dedicated server: start with a fresh installation of a cPanel-supported OS (such as AlmaLinux, Rocky Linux, CloudLinux or a supported Ubuntu LTS), set a fully qualified hostname, make sure no other web or mail server is installed, obtain a cPanel licence tied to the server's IP, then as root run the official installer from cPanel's secure download URL. After installation, log in to WHM on port 2087, complete the setup wizard, configure nameservers, enable backups and harden security.

Requirements before you start

RequirementDetails
Operating systemA fresh, minimal install of a cPanel-supported OS and version; check the current list in the cPanel installation guide
Fresh serverNo existing Apache, Nginx, MySQL, mail server or other panels
HostnameA fully qualified domain name, such as server1.example.in, with DNS pointing to the server
IP addressA static public IPv4 address
LicenceA cPanel licence for that IP (trial or paid)
ResourcesWell above cPanel's minimums for production hosting; a dedicated server is ample
AccessRoot SSH access and, ideally, IPMI/iLO for recovery
Install cPanel on a dedicated server – SkyRain Cloud bare metal servers in India

cPanel licensing in brief

cPanel is commercial software licensed per server, with pricing tiers based on the number of hosted accounts. Before buying, count how many cPanel accounts you will host now and in a year, compare tiers and remember that the licence is a recurring cost. Some hosting providers resell cPanel licences; you can also buy directly or through a partner. Confirm the current pricing model before you commit.

Step 1: prepare the operating system

  1. Install the supported OS fresh, using the provider's installer or your own ISO through iLO.
  2. Apply all updates and reboot.
  3. Set the hostname: hostnamectl set-hostname server1.example.in.
  4. Create DNS A records for the hostname (and later for nameservers).
  5. Check that no web, database or mail services are installed or running.

Step 2: install cPanel on the dedicated server

Log in as root over SSH (use a screen or tmux session so a dropped connection does not interrupt the install) and run the official installer:

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

The installation takes a while, often 30 to 60 minutes or more, as it compiles and configures many components. Let it finish without interruption. When it completes, it prints the WHM login address.

Step 3: complete the WHM setup wizard

  1. Open https://your.server.ip:2087 and log in as root.
  2. Accept the licence agreement and enter contact email addresses for alerts.
  3. Configure networking: hostname, resolvers and the main IP.
  4. Set up nameservers (your own, such as ns1/ns2.example.in, or external DNS).
  5. Choose services such as the FTP server and mail server options.
  6. Set disk quotas.

Step 4: harden the cPanel server

  • Run the WHM Security Advisor and fix its recommendations.
  • Enable two-factor authentication for WHM and cPanel users.
  • Use SSH keys for root, and restrict SSH and WHM access by IP where possible.
  • Enable a firewall (for example the one built into cPanel or CSF) with only needed ports open; see firewall best practices.
  • Enable cPHulk brute-force protection.
  • Use PHP-FPM with per-account pools and suitable PHP versions via MultiPHP.
  • Keep cPanel automatic updates enabled.

Step 5: configure backups

WHM includes a backup system that can create daily, weekly and monthly account backups. Send them to a remote destination (such as S3-compatible storage or an SFTP server), not only to a local disk, and test restoring a single account. See automated backups on a dedicated server.

Step 6: create packages and accounts

Define hosting packages (disk, bandwidth, email accounts, databases) that match your client tiers, then create accounts. Migrate existing sites with WHM's transfer tool if moving from another cPanel server.

Tuning cPanel for performance

A default cPanel install works, but a few adjustments make a big difference on a powerful dedicated server. Switch PHP handling to PHP-FPM so each account has its own pool and memory limits, and set sensible defaults for workers per account in WHM. Enable OPcache for every PHP version you offer. Tune MySQL or MariaDB for your memory, starting with the InnoDB buffer pool, and enable the slow query log. Consider a caching layer such as LiteSpeed (with its own licence) or Nginx in front of Apache if many of your sites are WordPress. Turn on HTTP/2 and Brotli or gzip compression. Finally, schedule backups and heavy maintenance tasks for quiet hours so they do not compete with client traffic.

Email on a cPanel server

cPanel includes a full mail stack, which is convenient but brings deliverability and security responsibilities. Set reverse DNS for the server IP to the hostname, publish SPF, DKIM and DMARC for hosted domains (cPanel can help generate these), enable outbound rate limits per account and monitor the mail queue for spam from compromised sites. Many agencies prefer to keep websites on cPanel and send client mailboxes to a dedicated email provider, which removes the biggest risk.

Ongoing maintenance

Once live, check WHM's server status and security advisor weekly, review backup reports, keep an eye on disk and inode usage per account and update PHP versions as older ones reach end of life. Plan for the OS itself to reach end of life too: cPanel publishes which OS versions it supports, and moving to a newer one usually means building a fresh server and transferring accounts with WHM's tools.

When another panel might be better

cPanel is powerful but licensed per account tier, which can become expensive for large numbers of small sites. Free and lower-cost panels exist, and some teams skip panels entirely in favour of automation. We compare options in the best control panels for managing a dedicated server. If you prefer a panel-free setup, see the Ubuntu dedicated server setup guide.

A hypothetical setup

A web design studio moves 80 client sites from two reseller accounts to its own dedicated server. It installs AlmaLinux from an ISO through iLO, sets the hostname server1.studio.in with matching DNS, buys a cPanel licence tier that covers 100 accounts with room to grow, and runs the installer in a tmux session. After the WHM wizard, the team enables PHP-FPM, cPHulk, two-factor login and remote backups to object storage, restricts WHM to the office IP and a VPN, and creates three hosting packages for its client tiers. Accounts are moved with WHM's transfer tool over two weekends, with DNS switched per client. Clients get the same familiar cPanel login, but faster sites and the studio controls the whole platform.

Installation mistakes

  • Installing on a server that already has a web or database server.
  • Using an unsupported OS version.
  • A hostname that does not resolve, or that matches a hosted domain.
  • Leaving WHM open to the world without 2FA.
  • Backups stored only on the same server.

Why businesses choose SkyRain Cloud dedicated servers

SkyRain Cloud dedicated servers are well suited to cPanel hosting:

  • Indian data centers, Indian latency. Intel Xeon dedicated servers are hosted in Mumbai and Delhi, close to customers across India.
  • The whole machine is yours. 100% unshared hardware: no other tenants competing for CPU, memory or disk.
  • DDoS protection included on the network, so a flood aimed at your IP does not have to become your problem alone.
  • Full control. Root or Administrator access plus iLO/IPMI out-of-band management to reboot, reinstall or mount your own ISO.
  • Real support channels. 24/7 support tickets, WhatsApp and a Discord community, plus a public status page.
  • Simple billing. Monthly billing in rupees with UPI, net banking and cards.

Frequently Asked Questions

Can I install cPanel on any Linux distribution?
No. cPanel supports specific operating systems and versions, such as certain releases of AlmaLinux, Rocky Linux, CloudLinux and Ubuntu LTS. Check the current list in cPanel's documentation before installing.
How long does a cPanel installation take?
Typically 30 to 60 minutes or more, depending on the server and network. Run it in a screen or tmux session so it continues if your SSH connection drops.
Is cPanel free?
No. cPanel is commercial software licensed per server, with tiers based on the number of accounts. Trial licences are available for testing.
Can I install cPanel on a server that already hosts websites?
It is not supported. cPanel should be installed on a fresh OS without existing web, database or mail servers. Migrate sites after installation.
What port does WHM use?
WHM is usually accessed over HTTPS on port 2087, and cPanel on port 2083. Restrict access by IP or VPN where possible and enable two-factor authentication.
Can SkyRain Cloud dedicated servers run cPanel?
Yes. You can install a cPanel-supported OS via iLO and run the installer with full root access. You will need your own cPanel licence.

Conclusion

Installing cPanel on a dedicated server is straightforward when you start clean: a supported OS, a proper hostname, a licence, the official installer and a careful WHM setup followed by hardening and remote backups. The result is a familiar, capable platform for hosting many sites.

Compare SkyRain Cloud's plans below, or see the full specs on our dedicated server page.

SkyRain Cloud Dedicated Server Plans

Unshared Intel Xeon bare-metal servers in Mumbai and Delhi data centers with 1 Gbps connectivity. Every plan includes iLO / IPMI out-of-band management, DDoS protection, Full root / Administrator access, Additional IPv4 addresses available and Billed monthly.

PlanCores / ThreadsRAMStorageNetworkPriceGood forBuy
Business
2× Intel Xeon E5-2699 v4 (Mumbai / Delhi)
44 / 88 (2.2 GHz base, 3.6 GHz turbo)128 GB DDR4 ECC1 TB NVMe SSD1 Gbps₹17,999/monthBusiness websites, stores, databases, ERP and many client sitesOrder
Enterprise
2× Intel Xeon Platinum 8269CY (Mumbai / Delhi)
52 / 104 (2.5 GHz base, 3.8 GHz turbo)128 GB DDR4 ECC1 TB NVMe SSD1 Gbps₹19,999/monthVirtualization hosts, large databases, SaaS and container platformsOrder
CustomMore RAM or storage, a second server for failover, or several servers for a cluster: quoted by the team.Clusters, failover pairs, unusual specsAsk

Prices are monthly in INR as listed on the SkyRain Cloud store (verified 2026-11-23). Live stock and final price are shown at checkout.

Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning