Skip to content
Shahid Malla

How to Install cPanel and WHM on a New Server

Installing cPanel and WHM on a new server: supported operating systems and specs, what a license costs, the hostname and IP work that comes first, the one install command, and the WHM settings after it.

· Published · 11 min read · 8 steps
How to Install cPanel and WHM on a New Server

To install cPanel and WHM on a new server, start with a freshly installed AlmaLinux or Ubuntu LTS system that has a resolvable fully qualified hostname, a static public IPv4 address, SELinux off and the operating system firewall off. Then run one command as root: cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest. Everything else is done in WHM afterwards.

cPanel and WHM is one product with two interfaces: WHM is the server side, where root and resellers create accounts, define packages and control services, and cPanel is the account side each hosting customer logs into. One license, tied to the server's main public IPv4 address, covers both.

Five-step workflow for a new cPanel server: check the specs, buy a license, set the hostname and IP, run one install command, then set up WHM
The order I build a cPanel server in. Source: shahidmalla.com, from the cPanel and WHM Installation Guide.

Every path, command, setting and figure below comes from cPanel's Installation Guide, its WHM documentation and cpanel.net/pricing, read on 2 December 2026.

Which operating systems and server specs does cPanel support?

AlmaLinux and Ubuntu 24.04 LTS are the mainstream choices, and cPanel publishes separate requirements pages for CloudLinux and Rocky Linux. Everything must be 64-bit. ARM is not supported.

Operating systemOldest cPanel versionProcessorRAM, min and recDisk, min and rec
AlmaLinux 10132 or later1.1 GHz2 GB, 4 GB20 GB, 40 GB
AlmaLinux 9114 or later1.1 GHz2 GB, 4 GB20 GB, 40 GB
AlmaLinux 8110 or later1.1 GHz2 GB, 4 GB20 GB, 40 GB
Ubuntu 24.04 LTSThe only supported Ubuntu release1.1 GHz, 2 GHz2 GB, 4 GB20 GB, 40 GB

Those are floors, not targets. The System Requirements for AlmaLinux OS page warns that a server meeting only the minimums may not function properly under high-demand functions. Four more numbers matter:

  • Installs and upgrades need at least 5 GB free in /usr/local/cpanel on top of the rest.
  • On a single-partition install, the base needs at least 1,000,000 inodes, plus 50,000 per cPanel account you plan to host.
  • Swap is twice the RAM up to 2 GB, equal to RAM between 2 GB and 4 GB, and 4 GB above that.
  • ClamAV is the memory hog: cPanel recommends at least 3 GB of RAM for it.

Use XFS or ext4; network filesystems such as NFS are not supported. One warning bites people on cheap VPS plans: cPanel only tests against official AlmaLinux upstream releases, and says pre-built images and templates may have trouble installing. On Ubuntu the installer adds MariaDB 10.11 and PowerDNS.

Which cPanel license do you need, and what does it cost?

Four tiers, separated by how many cPanel accounts they allow and what hardware they may run on. Only the top tier is sold for bare metal, which most people miss when planning a dedicated server.

PlanAccountsPrice shown on 2 DecemberStruck throughWhere it may run
Solo1$13.73 a month, annual$27.46Cloud and VPS only
AdminUp to 5$16.48 a month, annual$32.96Cloud and VPS only
ProUp to 30$24.73 a month, annual$49.46Cloud and VPS only
PremierUp to 100, then $0.49 each$34.99 a month, monthly$69.99Cloud, VPS, metal and dedicated

I read those prices on 2 December 2026. Every card carried a 50 percent off badge, and the site banner described it as a Black Friday offer of 50 percent off new licenses until 7 December. All prices exclude VAT. cPanel also states that effective 16 December 2026 its license pricing will be adjusted, affecting new orders and all renewals on or after that date.

cPanel pricing page showing Solo, Admin, Pro and Premier plans with account limits, discounted monthly prices and which hardware each plan may run on
Screenshot of cpanel.net/pricing, taken 2 December 2026. The prices are a temporary 50 percent offer and the struck-through figure is the regular price.

Three license rules shape your server plan. Each server needs its own. A license cannot be moved between servers, and cPanel warns that trying may get it locked. And cPanel only licenses publicly visible, static IP addresses with working DNS resolution, never dynamic, reserved, sticky or internal ones.

What do you set on the server before you run the installer?

Four things: a fresh operating system, a hostname, a static public IPv4 address, and SELinux and the firewall off. Get these wrong and the installer fails, or you get a server you cannot license.

Decision flow showing that a non-fresh OS, an unresolvable hostname or a non-static IP each block the cPanel installer, and that metal servers need the Premier tier
How I check a box before running the cPanel installer. Source: shahidmalla.com, from the cPanel System Requirements pages and cpanel.net/pricing.

The checklist I work through:

  • Fresh operating system. No Apache, database or mail services added first. Services installed before or during the install cause compatibility problems, and services that require cPanel make the install fail.
  • Hostname. A registered, fully qualified domain name, not matching any domain you host, at most 60 characters, resolving to a valid IPv4 or IPv6 address. If it does not resolve, cPanel issues the server a hostname automatically.
  • IP address. Static, public, not from DHCP. On a NAT network you need a 1:1 NAT and NAT loopback configuration. You cannot run an IPv6-only cPanel server.
  • SELinux. On the Red Hat family cPanel says SELinux must remain disabled. Set SELINUX=disabled in /etc/selinux/config, reboot, confirm with sestatus. Permissive mode can function, but cPanel recommends against it because it generates a large number of log entries. On Ubuntu, do not install SELinux at all; AppArmor can stay.
  • Firewall. cPanel recommends turning the OS firewall off for the install, because the installer opens the ports it needs. Save the rules first.
iptables-save > ~/firewall.rules
systemctl stop firewalld.service
systemctl disable firewalld.service

On Ubuntu the same two systemctl lines apply to ufw.service. One more trap: if the IP already has an active CloudLinux license, AlmaLinux converts itself to CloudLinux during the install. Add --skip-cloudlinux to the command to stay on AlmaLinux.

How do you run the cPanel and WHM install command?

As root, in one line, and then you wait. The documented command is the same on every supported operating system.

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

It changes to the home directory, downloads the current version and runs the installation script. Perl has to exist first; if it does not, the installer tries yum -y install perl or apt -y install perl perl-base. New installations default to fast installation mode; Customize Your Installation explains how to disable it.

cPanel documentation page showing the single install command and warnings about static licensed IP addresses, fresh operating systems and the lack of an uninstaller
Screenshot of docs.cpanel.net/installation-guide/install, taken 2 December 2026. The yellow box holds cPanel's own warnings about licensed IP addresses, root access, a freshly installed operating system and the missing uninstaller.

Run it inside screen or tmux, so a dropped SSH session cannot kill the install. When it finishes, WHM answers on port 2087 and cPanel accounts on 2083.

What do you configure in WHM after the install finishes?

A short wizard on the first root login, then the settings you go and find yourself. cPanel's Getting Started in WHM documentation, written for version 138 and later, says the first login shows the legal agreements, which you must accept, then a free trial prompt, then one step asking for a contact email address and two nameservers. To run that step again later, delete the /etc/.whostmgrft file. Everything else lives in the interfaces below, and the resolver one is itself a wizard.

What you are settingWhere it lives in WHMWhat to watch
Contact email, sender name, reply-toServer Configuration > Basic WebHost Manager SetupUse an address that does not exist on this server; it becomes the RNAME field in every SOA record.
Shared IPv4 and IPv6, ethernet device, home directoryServer Configuration > Basic WebHost Manager SetupChanging the shared IP later does not move existing accounts; those need the IP Migration Wizard.
Primary and secondary resolversNetworking Setup > Resolver ConfigurationTwo required, a third recommended. Wrong values leave the server with no internet.
Nameserver softwareService Configuration > Nameserver SelectionBIND, PowerDNS or Disabled. PowerDNS is the default, and the only option on Ubuntu.
Your own nameserver hostnamesServer Configuration > Basic WebHost Manager SetupRequired: without them you cannot create accounts.

Two details matter more than the rest. Resolver Configuration warns that public resolvers such as Google, Cloudflare or OpenDNS can make Spamhaus and other public blocklists answer NXDOMAIN, so the server quietly stops marking spam sources correctly; if you use any blocklist in Exim Configuration Manager, use your provider's resolvers. And after entering your nameserver hostnames, click Configure Address Records to create the A and AAAA records that make them resolve. Do not start a nameserver you will not use: if DNS lives at your registrar, set it to Disabled.

Which hardening steps come first on a new cPanel server?

Brute force protection, a real firewall, then whatever the built-in scanner finds. A new cPanel server is a public login page on a known port.

  • Turn on cPHulk. WHM > Security Center > cPHulk Brute Force Protection watches cPanel on 2083, WHM on 2087, Dovecot and Exim, Pure-FTPd and SSH. Whitelist your own IP addresses first, because the defaults can lock root out: 15 failures per account inside 5 minutes, 5 failures per IP address, a one-day block at 30. A blocked login only reads "The login is invalid".
  • Keep a way back in. cPHulk does not affect public key authentication or API tokens, so an SSH key is the escape hatch. Enabling cPHulk disables UseDNS in /etc/ssh/sshd_config, because a spoofed pointer record would otherwise defeat the whitelist.
  • Put the firewall back. You turned it off for the install. cPanel's own recommendation is a third-party client such as APF or CSF.
  • Run Security Advisor. WHM > Security Center > Security Advisor scans as soon as you open it: red for a severe issue, yellow for a critical one, blue for an optional improvement, green for resolved. Most alerts link to the interface that fixes them.
  • Plan updates now. An unpatched cPanel server is the normal cause of a bad week. I wrote separately about a recent cPanel and WHM advisory and about updating PHP and securing the server.

How do you set up backups and hosting packages?

Backups are off until you turn them on, and packages are what every account you create is built from.

In WHM > Backup > Backup Configuration, select Enable Backups, then make four decisions. Backup Type is Compressed, Uncompressed or Incremental: compressed uses less disk and takes longer, uncompressed is the reverse, incremental uses hard links for speed and space. Scheduling and Retention runs daily, weekly and monthly sets, each with a retention count between 1 and 9999 and a "Strictly enforce retention" option that counts failed backups too. Under Files, select Back up System Files: you need it to restore a whole server rather than single accounts. Then add an off-server target in Additional Destinations.

For databases, Per Account Only uses mysqldump, while the Entire MySQL Directory options copy /var/lib/mysql without stopping MySQL, which can produce InnoDB problems that make the backup unrestorable. Once one local backup and its metadata exist, the File and Directory Restoration interfaces appear in WHM and cPanel.

Packages come next, at WHM > Packages > Add a Package. A package sets disk quota, monthly bandwidth, how many FTP accounts, email accounts, databases, subdomains, parked and addon domains an account gets, plus hourly email limits and the feature list the customer sees. Two rules save pain later: you cannot rename a package, so never put a price in the name, and you cannot change its Dedicated IP setting. If a billing system will create these accounts, package names are what you map products to, which my guide to connecting WHMCS and cPanel covers.

What can go wrong, and when should you not do this yourself?

The expensive mistakes are the ones you cannot reverse.

  • There is no uninstaller. Removing the software means reformatting the server.
  • The license is married to the IP. Plan IP changes and migrations around that.
  • A minimum-spec box is a false economy. 2 GB of RAM passes the installer's check, then struggles when backups, mail and a busy site overlap.
  • A pre-built template can fail. If your provider offers only its own image, ask for a stock AlmaLinux or Ubuntu install.
  • Panel setup is not where the money is. This is a few hours of careful work with the documentation open, and your host's support desk can walk you through it. I do not sell cPanel installations.

Where I am useful is the layer above: billing and provisioning that works, DNS and mail that behave under load. That is the work behind my web hosting infrastructure work and help starting a hosting business.

What else do people ask about installing cPanel and WHM?

Can you install cPanel and WHM for free?

Not permanently. cPanel and WHM requires a valid license, but a new installation can activate a free 15-day trial, which needs a cPanel Store account with a verified email address. After it, you buy a tier.

How long does a cPanel and WHM installation take?

cPanel publishes no figure in the pages I read, so I will not invent one. It depends on the disk, the network and how much the installer compiles. Start it inside screen and leave it running.

Can you install cPanel on a server that already runs Apache or another panel?

No. cPanel says to install only on a freshly installed operating system. If the box runs another panel, rebuild the operating system first.

Do you need a dedicated server, or will a VPS do?

A VPS is fine, and it is where most people start. The restriction is the license, not the software: on 2 December 2026 Solo, Admin and Pro were each marked cloud and VPS only, and Premier was the one plan listed for metal and dedicated hardware.

Can you install cPanel and WHM on CentOS, Debian or an ARM server?

Not on a supported basis. The Installation Guide documents AlmaLinux, CloudLinux, Rocky Linux and Ubuntu 24.04 LTS, and states that ARM systems are not supported. cPanel publishes a page on experimental installation on unsupported operating systems, which is not something to run a business on.

Last reviewed 2 December 2026. Disclosure: I sell WHMCS and hosting automation work, so I am not neutral, and I do not sell control panel installations. I am CTO at ElySpace, a freelance developer for Marmaids LLC, and founder of WHMCSPilot and MagizAI.

Share this article

Shahid Malla

Written by

Shahid Malla

Freelance WHMCS developer and web designer with 13+ years of client work. CTO at ElySpace, freelance developer for Marmaids LLC, and founder of WHMCSPilot and MagizAI.

Got a project like this?

Tell me what you need and I will send a written quote within one business day.