Log inSign up

Run Control Web Panel on an Enterprise Linux 9 VPS

Deploy a clean Rocky Linux 9 or AlmaLinux 9 server, set a fully qualified host name, update and reboot, then download the EL9 installer from centos-webpanel.com into /usr/local/src and run it as root. After the closing reboot, the admin panel answers on https://198.51.100.24:2031 with the root login, and hosting users get their own panel on port 2083.

Topic: Control panels · Tested on: Rocky Linux 9, AlmaLinux 9 · Updated 2026-12-03

What is Control Web Panel?

Control Web Panel, usually shortened to CWP and once called CentOS Web Panel, is a hosting panel for the Red Hat family of distributions. The free edition manages hosting accounts, domains and subdomains, Apache with optional nginx or Varnish in front, several PHP versions, MariaDB, BIND DNS, Postfix and Dovecot mail, and a firewall with login blocking. A paid Pro edition adds extra features and vendor support. Every hosting account gets a separate system user and its own panel, much like a classic shared host.

CWP fits people who want a free cPanel-style layout on Rocky or Alma. For a Debian or Ubuntu server, look at HestiaCP instead.

How should the server be prepared?

Start with a freshly deployed Rocky Linux 9 or AlmaLinux 9 image and nothing else installed; CWP replaces the web, database, DNS and mail stack and the installer stops when it finds conflicting packages. On a server you have already used, reinstall the image from the Settings tab of the instance page (all data on the disk is erased, and the new root password is shown on Overview), following reinstalling an image. Plan for 2 GB of RAM or more; 1 GB is too tight once MariaDB, mail and the panel run together.

Point an A record for panel.example.net at 198.51.100.24, then set the host name, update and reboot:

sudo hostnamectl set-hostname panel.example.net
hostname -f
sudo dnf -y install wget tar
sudo dnf -y upgrade
sudo reboot

The installer reports the SELinux state at the start. If it asks for SELinux to be disabled or permissive, follow that instruction, and read the SELinux basics guide to understand what changes.

How do I run the CWP installer?

The project publishes one installer per Enterprise Linux generation. For Rocky and Alma 9 use the EL9 file, run from a root shell inside tmux so a dropped SSH connection does not cut it off:

sudo -i
cd /usr/local/src
wget https://centos-webpanel.com/cwp-el9-latest
sh cwp-el9-latest

Check the download page on the project site if that file name has changed, since the vendor occasionally renames installers between releases. The script compiles and installs a large set of packages and can take 20 to 40 minutes. At the end it prints the admin URL, the login details and a reminder to reboot. Do that, then verify the panel service and ports:

reboot
# after reconnecting
sudo systemctl status cwpsrv --no-pager
sudo ss -tlnp | grep -E ':(2030|2031|2082|2083) '

How do I sign in and create the first account?

Open https://198.51.100.24:2031 and sign in as root with the root password. The certificate is self-signed at first, so accept the warning once. On the dashboard, set the name servers and shared IP under the DNS and server settings, then create a hosting package that defines disk, bandwidth and database limits. Under User Accounts, add a new account for example.net with a strong password. The account owner can now log in at port 2083 to manage files, databases, mail boxes and the domain's DNS zone without ever touching root.

How do I lock down the admin ports?

CWP installs its own firewall module with login blocking and manages iptables rules through it, so add and remove ports from the panel Security menu rather than running firewalld at the same time. Keep the admin ports reachable only from your own address. In the firewall configuration, list port 2031 in the trusted entries for 203.0.113.7 and remove it from the public TCP list, then restart the firewall from the panel. Test from another network that 2031 is closed while 80, 443 and 2083 still answer:

nc -zv 198.51.100.24 2031
nc -zv 198.51.100.24 443

Use SSH keys for root and turn off password logins as described in SSH keys and hardening; panel logins are a common target.

How do I add certificates for sites and the panel?

CWP includes an AutoSSL tool using Let's Encrypt. After the domain resolves to the server, open the SSL section, choose the user and domain, and request the certificate; renewal happens automatically. For the panel itself, request a certificate for panel.example.net under the host name SSL option so the admin and user panels stop showing warnings. If a request fails, confirm that port 80 is open and that dig +short example.net returns the server address. The DNS records tutorial explains the records you need.

What about outgoing mail from CWP?

Postfix is installed by default, but port 25 may not be open on your server, so ask support with a ticket before counting on direct delivery, and request reverse DNS for the host name through the same ticket. An authenticated relay on port 587 keeps mail flowing either way. In /etc/postfix/main.cf set a relayhost of [smtp.example.net]:587 with SASL credentials, then reload Postfix; the SMTP relay guide lists the exact lines. Publish SPF, DKIM and DMARC records as well.

How do I keep CWP and the system updated?

CWP checks for panel updates on a daily schedule. You can also run the update script by hand and patch the operating system with dnf:

sudo sh /scripts/update_cwp
sudo dnf -y upgrade
sudo systemctl restart cwpsrv

Review the version shown at the bottom of the admin dashboard after each update. Panel software is a frequent target for attacks, so do not postpone updates; the automatic updates guide covers the dnf side.

What should I try when the panel will not load?

Start with the service: sudo systemctl status cwpsrv shows whether the panel web server runs, and sudo journalctl -u cwpsrv -n 50 shows recent errors. Next, make sure your own address was not blocked by the login protection after several wrong passwords; unblock it from SSH using the firewall tool, or wait for the ban to expire. If sites return errors after a PHP change, rebuild the web server configuration from the panel. When the disk is full, mail and databases fail first, so watch space with df -h.

Plans that fit this guide

Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.

All prices
PlanFits becauseSizeMonthlyOrder from
A1-2a test panel or one small site1 vCPU, 2 GB RAM, 50 GB NVMe$7.20/mo$43.20 for 6 months
I2-4several accounts with mail and databases2 vCPU, 4 GB RAM, 100 GB NVMe$14.40/mo$43.20 for 3 months

Questions about Control Web Panel (CWP) on Rocky or Alma

Is Control Web Panel free?

The standard edition is free. A paid Pro licence adds features and vendor support. Choose the edition on the project site; the install steps are the same.

Does CWP run on Ubuntu or Debian?

No. It targets the Red Hat family. On our images that means Rocky Linux 9 or AlmaLinux 9. For Ubuntu or Debian, HestiaCP or Webuzo are options.

Which ports does CWP use?

The admin panel uses 2030 (HTTP) and 2031 (HTTPS). The user panel uses 2082 and 2083, and webmail 2095 and 2096. Web traffic stays on 80 and 443.

How do I reset the CWP admin password?

The admin login is the system root account, so change it over SSH with sudo passwd root. Hosting user passwords can be reset from the admin panel.

Can I install CWP next to an existing website?

Not safely. CWP expects an empty server and replaces the web, database and mail services. Reinstall the image from the Settings tab and move sites in after setup.

How big should a CWP server be?

Two GB of RAM is a practical minimum and 4 GB, such as I2-4, is comfortable for a handful of accounts with mail and MariaDB.