How to Install cPanel on CentOS Stream

Setting up a robust web hosting environment requires a reliable operating system and a powerful control panel. CentOS Stream 9 provides a stable, enterprise-grade foundation for your server, while cPanel offers the intuitive interface needed to manage websites, emails, and databases effortlessly. If you are deploying a new virtual private server with VPS.one, getting these two components working together is your first major milestone. This guide walks you through the exact process of installing cPanel & WHM on a fresh CentOS Stream 9 machine. We will cover the necessary system preparations, the installation commands, and the final configuration steps. By the end of this tutorial, your server will be fully operational and ready to host your first domain. Let us get your control panel up and running.

How to Install cPanel on CentOS Stream.

Prerequisites

Before running any installation scripts, your server must meet specific hardware and software criteria. cPanel is resource-intensive, and attempting to install it on an underpowered machine will lead to performance bottlenecks. Furthermore, the operating system must be completely clean. Existing software installations can cause fatal conflicts during the setup process.

Requirement Minimum Specification
Operating System CentOS Stream 9 (Fresh Install)
RAM 2 GB
Disk Space 20 GB
Processor 1.1 GHz
Network Standard Ethernet

You can choose a plan at VPS.one — our CentOS Stream VPS servers are compatible with cPanel.

How to Install cPanel on CentOS Stream: Step-by-Step Guide 2026

With your server provisioned and requirements met, we can begin the actual installation. This process involves updating the system, setting a valid hostname, and executing the official cPanel installation script. Ensure you have root access via SSH before proceeding.

1. Update the Operating System and Install Dependencies

A fresh OS image might lack the latest security patches and essential utilities. We need to update the package manager and ensure core utilities are present, as the installer relies on them to fetch packages.

dnf update -y

Next, install curl and perl. These are mandatory for downloading the installation script and executing the backend Perl modules.

dnf install -y curl perl

2. Configure a Valid Fully Qualified Domain Name

The control panel requires a unique hostname to generate SSL certificates and route internal services correctly. Replace the placeholder with your actual registered domain name.

hostnamectl set-hostname server.yourdomain.com

Verify that the hostname is applied correctly by checking the system configuration.

hostnamectl

3. Adjust SELinux Settings

Security-Enhanced Linux can sometimes restrict the control panel from binding to necessary ports or executing scripts. Setting it to permissive mode prevents installation failures while maintaining basic security logging.

setenforce 0

Make this change persistent across server reboots by modifying the configuration file directly.

sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config

4. Download and Execute the cPanel Installation Script

Navigate to the home directory to keep your workspace clean. The official installation script will download all necessary packages, configure the database, and set up the web server environment. This process takes 30 to 90 minutes depending on your server hardware.

cd /home

Fetch the latest installation script directly from the official repository.

curl -o latest -L https://securedownloads.cpanel.net/latest

Run the script using the bash shell. We use the force flag to bypass minor non-critical warnings and ensure a smooth deployment.

sh latest --force

5. Access WHM and Complete the Setup Wizard

Once the script finishes, the Web Host Manager interface is ready. If the browser does not load immediately, ensure the cPanel service is actively running and listening on the correct port by restarting the service daemon.

/usr/local/cpanel/scripts/restartsrv_cpsrvd

Open your web browser and navigate to the WHM login page using your server IP address and the default secure port.

https://YOUR_SERVER_IP:2087

Conclusion

Your CentOS Stream 9 server is now fully equipped with cPanel and WHM. You have a powerful environment ready to create hosting accounts, manage DNS zones, and deploy websites. Managing a control panel requires ongoing attention, so consider setting up automated backups and keeping your system updated regularly. If you need reliable infrastructure to host this new setup, VPS.one provides high-performance virtual servers optimized for control panel deployments. Happy hosting.

DN

The author

Dmitriy Novitsky

Dmitriy Novitsky, Chief Technology Officer at VPS.one, is a seasoned expert in VPS hosting. With years of experience, he shares valuable insights and technical knowledge to help users optimize their hosting performance and stay ahead in the tech world.

How to Install Docker on AlmaLinux

How to Install Docker on AlmaLinux

How to Install Docker on CentOS Stream

How to Install Docker on CentOS Stream

How to Install cPanel on AlmaLinux

How to Install cPanel on AlmaLinux