How to Install and Configure CyberPanel on Your VPS Server

OpenLiteSpeed web server administration interface and CyberPanel control panel dashboard on a Linux VPS.
Verified Answer

To install CyberPanel on a clean KVM VPS running Ubuntu 22.04/24.04 or AlmaLinux 8/9, update your system packages, run the official one-line installer script as root, choose OpenLiteSpeed (free) or LiteSpeed Enterprise, and immediately harden ports 8090, 22, and 7080 before adding production websites.

CyberPanel is an open-source web hosting control panel built natively around the OpenLiteSpeed web server. Unlike traditional Apache-based panels that consume heavy RAM under concurrent PHP traffic, CyberPanel pairs an event-driven LiteSpeed engine with built-in LSCache, PowerDNS, MariaDB, Pure-FTPd, and Postfix/Dovecot mail routing—making it one of the fastest control panels for virtual private servers.

However, a default CyberPanel installation leaves several administrative interfaces exposed and relies on generic self-signed TLS certificates. Following a disciplined pre-flight, installation, and post-deployment hardening sequence ensures your VPS stays fast, secure, and production-ready from day one.

OpenLiteSpeed Core

Event-driven HTTP/3 and QUIC support with native LSCache delivers lower TTFB than uncached Apache setups.

Fresh OS Requirement

Requires a clean Ubuntu 22.04/24.04 or AlmaLinux 8/9 image with zero pre-installed Apache, Nginx, or MySQL daemons.

Built-In SSL & Docker

Automated Let’s Encrypt issuance, MariaDB tuning, and optional Docker/Git integration ship out of the box.

VPS Prerequisites and Supported Linux Distributions

CyberPanel’s installer scripts compile and configure multiple interconnected services—OpenLiteSpeed, LSAPI PHP workers, MariaDB, PowerDNS, and ModSecurity. Installing on a server that already runs cPanel, Plesk, Nginx, or an existing MySQL instance will trigger port conflicts on 80, 443, and 3306 and corrupt package dependencies. Always provision a fresh KVM VPS with a minimal OS template.

For hardware sizing, 1 vCPU and 1 GB RAM is the bare minimum for a single low-traffic WordPress site, provided you enable at least 2 GB of swap space. For production multi-site hosting, Redis object caching, and email services, start with 2 vCPUs, 4 GB RAM, and 40 GB NVMe storage. Ensure your cloud provider’s external security group allows TCP ports 22, 80, 443, and 8090 before starting the installer.

OpenLiteSpeed vs. LiteSpeed Enterprise on CyberPanel

During installation, CyberPanel prompts you to choose between the free OpenLiteSpeed engine and the commercial LiteSpeed Enterprise (LSWS) license. Understanding the architectural differences prevents costly migrations later:

Capability OpenLiteSpeed (Free) LiteSpeed Enterprise
License Cost 100% Free & Open Source (GPLv3) Paid per-worker / domain tier
.htaccess Support Rewrite rules only (requires OLS restart on edit) Full Apache .htaccess drop-in compatibility
LSCache & HTTP/3 Included (ideal for WordPress, Laravel, Magento) Included + ESI & advanced brute-force throttling
Best Fit Single-tenant VPS, agencies, SaaS blogs High-density shared hosting & cPanel migrations

Step-by-Step CyberPanel Installation via SSH

Connect to your VPS as root, update all system packages, set a valid FQDN hostname, and launch the official CyberPanel installer inside a screen or tmux session so an accidental SSH disconnect never aborts the build mid-way:

PuTTY / Linux Terminal (bash)

# 1. Update OS packages and install screen (Ubuntu/Debian)
apt-get update && apt-get upgrade -y
apt-get install -y curl wget screen

# 2. Set a valid FQDN hostname
hostnamectl set-hostname panel.example.com

# 3. Start a resilient screen session and run the CyberPanel installer
screen -S cyberpanel
sh <(curl -fsSL https://cyberpanel.net/install.sh || wget -qO- https://cyberpanel.net/install.sh)

When prompted by the interactive wizard, select 1 to install CyberPanel, choose 1 for OpenLiteSpeed, confirm Y for Full Service (PowerDNS, Postfix, Pure-FTPd) unless you offload DNS and email externally, and press N for Remote MySQL unless you run a dedicated database cluster. Choose r to generate a strong random admin password or s to specify your own, then enable Memcached and Redis extensions if you plan to run WordPress or WooCommerce.

First-Boot Configuration: Hostname SSL, DNS, and PHP Workers

Once the installer finishes (typically 10–15 minutes depending on CPU cores and mirror speed), log in at https://YOUR_VPS_IP:8090 using username admin and the generated password. Your first priority is eliminating browser certificate warnings on the control panel itself.

Create an A record in your DNS provider pointing panel.example.com to your VPS IPv4 address. Inside CyberPanel, navigate to Websites > Create Website and add panel.example.com, then go to SSL > Hostname SSL, select that domain, and issue a Let’s Encrypt certificate. Afterward, you can access the panel securely over https://panel.example.com:8090. Next, open PHP > Edit PHP Configs, select PHP 8.2 or 8.3, and raise memory_limit to 256M, upload_max_filesize to 64M, and max_execution_time to 120 for modern CMS workloads.

Post-Install Security Hardening and Firewall Rules

Never leave CyberPanel’s default administrative ports open to the entire internet. Port 8090 (CyberPanel UI) and port 7080 (OpenLiteSpeed WebAdmin) are frequent targets for automated credential-stuffing bots. Use CyberPanel’s built-in CSF/FirewallD interface—or UFW on Ubuntu—to restrict 7080 and 8090 strictly to your office VPN or static admin IP, or tunnel them over SSH when needed.

Additionally, enable ModSecurity with the OWASP Core Rule Set under Security > ModSecurity Conf, activate Fail2ban or CSF brute-force protection, and disable root password SSH logins in favor of Ed25519 keys. For WordPress deployments, install the official LiteSpeed Cache plugin and enable Redis object caching on 127.0.0.1:6379 to offload repetitive wp_options queries from MariaDB.

Finally, configure automated off-server backups under Backup > Incremental Backup to an S3-compatible bucket or remote SSH target so a single disk failure never compromises customer data. Verify restore integrity monthly by spinning up a staging clone from your latest incremental archive and confirming database character-set consistency and file permissions.

Tuning LSAPI PHP Workers, LSCache, and MariaDB Memory Pools

Out of the box, CyberPanel configures OpenLiteSpeed with conservative PHP LSAPI (LiteSpeed SAPI) worker defaults and unoptimized MariaDB buffer sizes. Under sudden WooCommerce checkout concurrency or search-bot crawls, undersized LSAPI process limits trigger HTTP 503 timeouts while unallocated InnoDB memory forces MariaDB to read index pages repeatedly from disk.

To size LSAPI workers mathematically on a CyberPanel VPS, reserve 512 MB for the Linux kernel and OpenLiteSpeed, allocate 35–40% of total RAM to MariaDB innodb_buffer_pool_size, and divide the remaining memory by your average PHP process footprint (typically 60–90 MB for WordPress with WooCommerce). On a 4 GB RAM VPS, that formula yields roughly 1.5 GB for MariaDB and 20–25 concurrent LSAPI_CHILDREN without risking swap thrashing.

Component / Parameter Default CyberPanel Value Recommended 4 GB VPS Tuning Performance Impact
PHP_LSAPI_CHILDREN 10 (per vHost / external app) 20–25 (match Max Connections) Eliminates 503 worker queue stalls under bursts
PHP_LSAPI_MAX_REQUESTS 500–5000 1000–2000 Recycles long-lived workers to prevent leaks
innodb_buffer_pool_size 128M (MariaDB default) 1536M (1.5 GB) Caches hot tables/indexes in RAM, cuts disk I/O
Redis Object Cache Disabled per site Enabled on 127.0.0.1:6379 Cuts repetitive wp_options SQL queries by 60%+

Inside OpenLiteSpeed WebAdmin (port 7080, tunneled safely via SSH), verify that Server Configuration > External App > lsphp8x sets Max Connections equal to PHP_LSAPI_CHILDREN and enables Run On Start Up = Yes (Detached). Pair LSAPI tuning with the LiteSpeed Cache plugin’s Guest Mode and QUIC/HTTP3 enabled on UDP port 443 for sub-100 ms TTFB on cached pages.

Surgical ModSecurity Rule Whitelisting and Large Database CLI Imports

Two operational pain points regularly trip up CyberPanel administrators: ModSecurity Web Application Firewall (WAF) false positives on WordPress page builders, and phpMyAdmin upload timeouts when importing multi-gigabyte SQL databases. Many tutorials recklessly tell users to disable ModSecurity completely, leaving the entire VPS exposed to SQL injection and remote file inclusion exploits.

Instead of disabling the WAF globally, keep OWASP Core Rule Set enforcement active and whitelist only the exact triggering Rule ID for the affected virtual host. Inspect the ModSecurity audit log to extract the offending id tag, then add a targeted SecRuleRemoveById directive inside the website’s vHost configuration or .htaccess rewrite context.

ModSecurity WAF Rule

# 1. Locate the exact ModSecurity Rule ID blocking a legitimate CMS request
grep -E "id \"[0-9]+\"" /usr/local/lsws/logs/modsec_audit.log | tail -n 20

# 2. Whitelist ONLY the false-positive Rule ID inside vHost / ModSecurity custom rules
# Example: remove rule 942100 only for a specific admin endpoint
SecRule REQUEST_URI "@beginsWith /wp-admin/post.php" "id:100501,phase:1,pass,nolog,ctl:ruleRemoveById=942100"

# 3. Import a large 5 GB+ SQL dump via SSH CLI instead of phpMyAdmin
zcat production_dump.sql.gz | mariadb -u cyberpanel_dbuser -p target_database_name
# Or monitor progress with pv:
pv production_dump.sql | mariadb -u cyberpanel_dbuser -p target_database_name

Likewise, bypass phpMyAdmin’s 50–128 MB HTTP upload ceiling whenever migrating large WooCommerce or Magento databases. Uploading the compressed .sql.gz archive via rsync or SFTP and streaming it straight into mariadb over SSH finishes 5 GB imports in minutes with zero PHP execution-time errors and minimal memory overhead.

Automated CyberPanel Troubleshooting: Logs, LSWS Restarts, and ACME SSL Recovery

When the CyberPanel dashboard at port 8090 throws a 500 error or an automated Let’s Encrypt certificate renewal stalls, knowing the exact log paths and systemd service units avoids hours of guesswork. CyberPanel separates its Django control-plane daemon (lscpd) from the OpenLiteSpeed web engine (lsws), meaning websites stay online even if the control panel UI requires a restart.

PuTTY — root@server:~ (bash)

# 1. Check CyberPanel control-plane logs and restart lscpd safely
tail -n 50 /home/cyberpanel/error-logs.txt
systemctl restart lscpd

# 2. Inspect OpenLiteSpeed web server errors and reload rewritten .htaccess rules
tail -n 50 /usr/local/lsws/logs/error.log
systemctl restart lsws

# 3. Force-test ACME Let's Encrypt certificate issuance with verbose debug output
/root/.acme.sh/acme.sh --issue -d example.com -d www.example.com \
  -w /home/example.com/public_html --force --debug

# 4. Audit /tmp/lshttpd cache bloat and inode consumption
df -i && du -sh /tmp/lshttpd /usr/local/lsws/cachedata

If Let’s Encrypt issuance falls back to a self-signed certificate, verify that Cloudflare proxy orange-clouding is not blocking HTTP-01 challenge paths or redirecting /.well-known/acme-challenge/ to HTTPS before a valid cert exists, and ensure IPv6 AAAA records actually resolve to your VPS if dual-stack networking is enabled.

CyberPanel Installation & Configuration FAQ

Can I install CyberPanel on a VPS that already runs Apache or Nginx?

No. CyberPanel expects a clean OS installation with no pre-installed web servers, databases, or competing control panels. Existing services on ports 80, 443, or 3306 will cause the installer to fail.

How do I reset the CyberPanel admin password from the terminal?

Log in to your VPS via SSH as root and run adminPass YOUR_NEW_STRONG_PASSWORD. CyberPanel updates the dashboard credentials immediately without restarting hosted websites.

Why do .htaccess changes not take effect immediately on OpenLiteSpeed?

OpenLiteSpeed reads rewrite rules into memory at startup for maximum speed. After modifying .htaccess, run systemctl restart lsws or restart OpenLiteSpeed from CyberPanel’s Service Status menu.

How much RAM does CyberPanel need for WordPress with LSCache?

While 1 GB RAM with swap can run a single light site, 2 GB to 4 GB RAM is recommended for smooth MariaDB, Redis, and PHP LSAPI concurrency without out-of-memory kills.

Which ports must be open in the firewall after installing CyberPanel?

Keep ports 80 and 443 open for web traffic, 8090 for the CyberPanel admin UI (ideally restricted to your IP), 22 (or your custom SSH port), and 53/25/465/587/993 if you run local DNS and email services.

How do I issue a hostname SSL certificate for CyberPanel port 8090?

Point an A record for your panel subdomain (such as panel.yourdomain.com) to your VPS IP, then navigate to SSL → Hostname SSL inside CyberPanel to issue a Let’s Encrypt certificate for port 8090.

How to Install and Configure CyberPanel on

Applying the vps prerequisites and supported linux distributions principles covered above helps prevent resource bottlenecks and configuration drift in production. Review our VPS hosting specifications to match CPU, NVMe I/O, and network capacity to your workload.