cPanel Guide

How to Install cPanel on CentOS: Requirements & Alternatives

Learn how to install cPanel on CentOS, what requirements to check, why CentOS support matters and which hosting alternatives may be safer.

πŸ–₯️ Server setup β€’ ⚑ Quick install β€’ πŸš€ Beginner friendly

If you searched for how to install cPanel on a CentOS server, you are probably trying to turn a fresh VPS or dedicated server into a hosting server with WHM, cPanel accounts, websites, email, databases and SSL.

The important part is this: older CentOS cPanel tutorials can now be risky because cPanel operating system support has changed. This guide keeps the original CentOS installation intent, but also explains what you must check before following older instructions.

Important: Do not install cPanel on a live production server by blindly following an old CentOS guide. Check the current cPanel supported operating systems first, then decide whether to use CentOS, migrate to a supported OS, or choose a managed hosting/control panel alternative.

Quick answer: can you install cPanel on CentOS?

Historically, yes β€” cPanel was widely installed on CentOS servers. Today, you must be careful because CentOS support has changed and new cPanel installations should be checked against cPanel’s current system requirements before you start.

If you are provisioning a new server now, a currently supported operating system such as AlmaLinux, CloudLinux, Rocky Linux or Ubuntu may be more appropriate depending on cPanel’s current requirements.

Before you install cPanel on CentOS

cPanel & WHM is not a small website script. It is a full hosting control panel that manages web services, mail services, DNS, databases, accounts, SSL and server configuration. That means the server needs to be prepared properly before installation.

The server should normally be clean, freshly provisioned and not already hosting websites. Installing cPanel onto a server that already has manually configured Apache, Nginx, mail, DNS or database services can cause conflicts.

cPanel on CentOS: the current support issue

Many older tutorials say β€œinstall cPanel on CentOS 7” because that used to be a common hosting setup. However, CentOS 7 reached the end of normal support and cPanel’s own support timelines now treat CentOS 7 as legacy rather than a normal new-install choice.

That does not mean every old CentOS server instantly stops working, but it does mean you should avoid starting a new hosting setup on an outdated operating system unless you fully understand the support and security implications.

Scenario Best action
You already run cPanel on CentOS Check cPanel support timelines and plan a migration path before support becomes a problem.
You are building a new cPanel server Use a currently supported operating system from the official cPanel requirements.
You only need website hosting Consider managed hosting or DirectAdmin hosting instead of managing a full cPanel server.
You need root access and custom setup Use a VPS/VDS with a supported OS and plan security, backups and monitoring carefully.

cPanel server requirements checklist

Before installing cPanel, check the basics below. Skipping these can lead to failed installations, broken mail, DNS problems or a server that is hard to maintain.

  • A clean VPS, VDS or dedicated server
  • A supported operating system version
  • Root SSH access
  • A valid fully qualified hostname
  • A static public IP address
  • A cPanel licence
  • Enough RAM, CPU and disk space for the number of accounts you will host
  • Working DNS and reverse DNS planning
  • Firewall and SSH security plan
  • Off-server backups before hosting live websites

Step-by-step: installing cPanel on a fresh server

The exact process depends on the operating system and current cPanel requirements, but the high-level installation flow is usually similar.

  1. Provision a fresh server. Start with a clean server using an operating system currently supported by cPanel.
  2. Set the hostname. Use a fully qualified hostname such as server.example.com, not just a domain name.
  3. Update the server. Apply system updates before installing the control panel.
  4. Check networking. Confirm the public IP, DNS and reverse DNS are planned correctly.
  5. Install cPanel & WHM. Use the official cPanel installation command from the current documentation.
  6. Complete WHM setup. Log in to WHM, configure nameservers, networking, packages and security options.
  7. Configure backups. Set backups before hosting production accounts.
  8. Create a test account. Add one domain first and test DNS, SSL, email, FTP and database access.

Official cPanel installation command

cPanel’s installation documentation currently shows the installation command below. Always check the official documentation before running it, because requirements and supported operating systems can change.

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

This command downloads and runs the cPanel installer. It should be run as root on a suitable fresh server. Do not run it on a server that already contains important websites unless you know exactly what you are doing.

Website Hosts UK

Want hosting without managing cPanel yourself?

If your goal is simply to host websites, email, SSL and databases, Website Hosts UK offers DirectAdmin hosting as a practical cPanel alternative without needing to install, license and secure your own cPanel server.

What to configure after installing WHM/cPanel

Installing cPanel is only the start. WHM needs to be configured properly before hosting real websites or customer accounts.

Area What to check
Nameservers Set nameservers and glue records if the server will provide DNS.
Hostname SSL Make sure the server hostname can use a valid SSL certificate.
Firewall Secure SSH and open only required hosting/control panel ports.
Mail Configure hostname, reverse DNS, SPF, DKIM and DMARC where suitable.
Backups Configure backups and ideally store them away from the server.
Packages Create sensible hosting packages with disk, bandwidth and account limits.

Common cPanel installation mistakes

  • Following an outdated CentOS tutorial without checking current OS support.
  • Installing cPanel on a server that is not clean.
  • Using an invalid hostname.
  • Not checking licence costs before installation.
  • Ignoring firewall, SSH and root access security.
  • Forgetting off-server backups.
  • Adding live customer websites before testing DNS, SSL and email.
  • Assuming WHM/cPanel removes the need for server administration.

cPanel vs DirectAdmin for hosting websites

cPanel is powerful and familiar, but it also adds licensing costs and server management responsibility. DirectAdmin can be a good alternative if you want a control panel for websites, email, SSL, DNS and databases without the same cPanel licensing route.

Option Best for What to consider
Install cPanel/WHM yourself Server admins who need WHM/cPanel features Requires licence, root access, security, backups and ongoing maintenance.
DirectAdmin hosting Website owners who need hosting control without running their own panel server Good for websites, email, databases, SSL and day-to-day hosting tasks.
Managed web hosting Small businesses that do not want server administration Easier if you only need to run a website and email.
VPS/VDS with supported OS Developers and admins needing root access More control, but more responsibility.

Should you still target CentOS for new cPanel installs?

For a new server, usually no. The safer path is to choose an operating system that cPanel currently supports for new installations. That keeps updates, security and future cPanel upgrades cleaner.

If your server provider only offers old CentOS images, it is worth choosing another OS template or provider before building the server. Rebuilding a server later is much more disruptive once websites and email accounts are live.

Useful related pages

DirectAdmin Hosting β†’

Control panel hosting for websites, email, SSL and databases.

cPanel Alternative Hosting β†’

A practical option if you want hosting without cPanel server management.

VPS Hosting UK β†’

For users who need root access and custom server control.

VDS Hosting UK β†’

For dedicated virtual resources and stronger server isolation.

Final thoughts

If someone searches for how to install cPanel on CentOS, they need a practical answer β€” but they also need a warning. The installation process is not the hardest part; choosing a supported operating system, securing the server and maintaining it long term are the bigger responsibilities.

If you are learning server administration, a test VPS can be useful. If you are hosting real business websites, be cautious: use a supported OS, plan backups, secure the server properly and consider managed hosting or DirectAdmin hosting if you do not need full WHM/cPanel control.