Skip to content

How to Install CyberPanel on a Linux VPS (Step-by-Step Guide)

Commercial web hosting control panels can become expensive, often costing more every month than the VPS itself. Learning how to install CyberPanel on your own Linux server gives you a modern, free hosting dashboard powered by the OpenLiteSpeed web server. Since CyberPanel includes native server-level page caching (LSCache) and HTTP/3 (QUIC) support, your websites will run significantly faster on budget hardware compared to traditional Apache/cPanel setups.

This quick setup guide shows you how to install CyberPanel on a fresh Ubuntu or AlmaLinux virtual private server from start to finish. We cover prerequisites, running the installer, open ports, and securing the admin dashboard with Let’s Encrypt SSL.

How to install CyberPanel on a Linux VPS architecture showing OpenLiteSpeed, MariaDB, Redis, and SSL layers
Installing CyberPanel provisions OpenLiteSpeed, MariaDB, PHP, email, DNS, and automated SSL in one command.

Prerequisites and Server Sizing

To avoid installer errors, verify your server meets these minimum requirements before figuring out how to install CyberPanel. It must be a completely fresh operating system install; do not attempt this on an active web server.

Resource Minimum Spec Recommended Production Spec
Operating System Ubuntu 22.04 / 24.04 LTS, or AlmaLinux 8 / 9 (64-bit) Ubuntu 24.04 LTS or AlmaLinux 9
RAM (Memory) 1 GB (1024 MB) 2 GB to 4 GB+ (Crucial for multi-site hosting)
Storage Space 10 GB free disk space 25 GB to 50 GB+ NVMe SSD
CPU 1 vCPU (x86_64) 2+ vCPUs (Faster compilation & staging)
Server Access Root SSH access Root SSH with key-based authentication

Important: If you are using a 1 GB or 2 GB VPS, we highly recommend adding a 2 GB swap file before running the installation command to prevent memory-heavy processes from crashing the setup. To make sure you run the proper host tier, consult our common VPS mistakes guide.

How to Install CyberPanel Step-by-Step

Follow these quick steps to launch the installer and configure your web control panel.

Step 1: Connect to Your VPS and Update the System

Open your terminal and connect to your server as the root user:

ssh root@YOUR_SERVER_IP

If you are logged in as a non-root sudo user, switch to an interactive root shell immediately:

sudo su -

Update the local package index and install required download utilities:

On Ubuntu 22.04/24.04 LTS:

apt update && apt upgrade -y
apt install -y curl wget screen

On AlmaLinux 8/9:

dnf update -y
dnf install -y curl wget screen

Step 2: Start a Backup Installer Session

Installing CyberPanel takes roughly 5 to 12 minutes. Launching `screen` protects your progress if your local internet connection drops mid-way:

screen -S cyberpanel-install

Step 3: Run the CyberPanel Installer Command

Execute the official installation script sourced from the CyberPanel Knowledge Base installation guide:

sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)

The system will scan your RAM and drive space, then show an interactive prompts screen.

How to install CyberPanel terminal installer prompts showing OpenLiteSpeed, Redis, and password configuration
The screen-guided CLI prompts configure OpenLiteSpeed, MariaDB, PHP, Redis, and passwords automatically.

Step 4: Answer the Setup Prompts

Configure the install options using this sequence of inputs:

  1. Select Option: Type 1 (Install CyberPanel) and press Enter.
  2. Choose LiteSpeed Version: Type 1 (CyberPanel with OpenLiteSpeed) for the 100% free, unlimited-domain version.
  3. Install Full Service (PowerDNS, Postfix, Pure-FTPd)?:
    • Type Y if you want to use the server for DNS zones and email inbox hosting.
    • Type N if you plan to use third-party DNS (e.g., Cloudflare) and an external email relay, which saves system RAM.
  4. Remote MySQL?: Type N (recommended for hosting MySQL on the same VPS).
  5. CyberPanel Version: Press Enter to use the latest stable release.
  6. Admin Password [d/r/s]: Type s to enter your own strong custom password (recommended) or r to generate a random password. Avoid using the default password 1234567 (d).
  7. Install Memcached?: Type Y to cache application data.
  8. Install Redis?: Type Y (highly recommended for high-speed WordPress Object Caching).
  9. Install Watchdog?: Type Y to automatically reboot failed processes.

Once you confirm the final option, the script will spend 5 to 10 minutes compiling software and setting up the environment. At the end, you will see a success confirmation along with login credentials. Copy this entire block somewhere safe. If asked to reboot, type Y to restart the server cleanly.

Essential Post-Installation Tasks

Once the installer completes, you still need to open your firewall ports and secure the admin login before deploying live sites.

1. Open Required Ports

Make sure your server firewall lets traffic through to the admin panel and web services. If you follow this how to install CyberPanel guide on a server with firewalls active, blocked ports will prevent the login page from loading.

On Ubuntu (UFW):

sudo ufw allow 22/tcp comment 'SSH'
sudo ufw allow 80/tcp comment 'HTTP'
sudo ufw allow 443/tcp comment 'HTTPS'
sudo ufw allow 443/udp comment 'HTTP3 QUIC'
sudo ufw allow 8090/tcp comment 'CyberPanel Admin'
sudo ufw allow 7080/tcp comment 'OpenLiteSpeed Console'
sudo ufw allow 21/tcp comment 'FTP'
sudo ufw allow 40110:40210/tcp comment 'Passive FTP'
sudo ufw --force enable

On AlmaLinux (firewalld):

sudo firewall-cmd --permanent --add-port=8090/tcp
sudo firewall-cmd --permanent --add-port=7080/tcp
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --permanent --add-port=443/udp
sudo firewall-cmd --permanent --add-port=21/tcp
sudo firewall-cmd --permanent --add-port=40110-40210/tcp
sudo firewall-cmd --reload

2. Access the Dashboard and Install SSL

Navigate to https://YOUR_SERVER_IP:8090 in your browser. Ignore the self-signed SSL warning (advanced/proceed) and sign in using the admin username and your password.

To eliminate security warnings and securely load your panel:

  1. Map an A record in your DNS panel (e.g., Cloudflare) pointing panel.yourdomain.com to your server IP.
  2. In the CyberPanel left sidebar, go to Websites → Create Website. Define the domain as panel.yourdomain.com using standard PHP settings and create it.
  3. Navigate to SSL → Manage SSL → Issue SSL for Hostname, select panel.yourdomain.com from the dropdown, and click Issue SSL.
  4. Refresh your browser and log in securely at https://panel.yourdomain.com:8090. You should see a valid secure padlock icon.

3. Add a Website and Deploy WordPress

To launch your first WordPress website on CyberPanel:

  1. Go to Websites → Create Website. Select Default package, enter yourdomain.com, choose your PHP version, check the SSL box, and click **Create Website**.
  2. Access Websites → List Websites → Manage next to your newly created domain.
  3. Scroll to the bottom under Application Installer and select **WP + LSCache**.
  4. Fill in your website details and click Install Now.
  5. Log into WordPress, navigate to **LiteSpeed Cache → Cache → Object**, turn Object Cache ON, and set the method to Redis (on port 6379) to activate server-level caching.
How to install CyberPanel post-setup workflow showing hostname SSL issuance and one-click WordPress with LiteSpeed Cache
Securing your host with SSL and setting up WordPress with Redis speeds up websites on a new dashboard.

4. Verify Services via CLI

If you suspect a service crashed or want to check on OpenLiteSpeed from the command-line, verify their system status with systemd:

sudo systemctl status lscpd
sudo systemctl status lsws

For deep debugging or service triages on resource-depleted nodes, search your log streams using the diagnostic commands in our Linux server troubleshooting guide.

Frequently Asked Questions About Installing CyberPanel

Can I install CyberPanel on a 1 GB RAM VPS?

Yes, though it is not recommended for production environments. Running OpenLiteSpeed, MariaDB, Redis, and internal panel services on 1 GB of RAM leaves zero margin during traffic spikes. If you must run on a 1 GB RAM VPS, add a 2 GB swap file before running the installation command, and skip local mail and DNS server modules.

Is the OpenLiteSpeed edition of CyberPanel completely free?

Yes. The OpenLiteSpeed edition of CyberPanel has no domain, website, or traffic limits, and does not require a paid license. It is 100% free. CyberPanel Enterprise requires a license only if you want to swap OpenLiteSpeed for the paid LiteSpeed Enterprise web server, which can be reviewed in the official LiteSpeed CyberPanel documentation.

What operating systems can I use?

The CyberPanel installation script is supported on Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and AlmaLinux 8 & 9. Other distributions like Debian, CentOS 7, or Fedora are not officially supported. Ensure you are using a clean OS image before running the installer script.

How do I update CyberPanel later on?

Log in as root and run the official upgrade script: sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh). This keeps the CyberPanel code updated while leaving your websites and databases untouched.

Conclusion

Knowing how to install CyberPanel lets you deploy a fast, self-managed hosting dashboard without cPanel licensing fees. By provisioning your VPS, running the interactive setup script, opening your firewall ports, and configuring host-level SSL, you can easily self-host and staging high-performance websites on cheap VPS tiers.