How to Install CyberPanel on an Ubuntu VPS
CyberPanel is a modern web hosting control panel that makes it easy to host websites on a VPS using OpenLiteSpeed (a high‑performance web server). With CyberPanel you can create websites, manage DNS, issue free SSL certificates, set up email, and deploy WordPress—all from a browser-based dashboard.
This guide walks you through a safe, step-by-step installation of CyberPanel on an Ubuntu VPS and shows how to use it for “free hosting” in the practical sense: hosting your own sites without paying for shared hosting (you still need a VPS).
Important: CyberPanel requires root access and makes major changes to your server (web server, firewall rules, services). Use a fresh VPS if possible.
What you need (prerequisites)
Before you start, confirm:
- VPS OS: Ubuntu 20.04 / 22.04 / 24.04 (fresh install recommended)
- RAM: 2 GB minimum (4 GB recommended if you’ll run multiple sites)
- CPU: 1–2 vCPU minimum
- Disk: 20 GB+
- A domain name (recommended): You can test with the server IP, but a domain makes SSL and email easier
- Root access: via SSH
Recommended DNS records (for a domain)
If you will use a domain, point it to your VPS IP:
Arecord:example.com→YOUR_VPS_IPArecord:www.example.com→YOUR_VPS_IP
Step 1 — Log in to your VPS and update packages
SSH into your server:
ssh root@YOUR_VPS_IP
Update your system and install common utilities:
apt update && apt -y upgrade
apt -y install curl wget sudo ufw
Reboot if the kernel was upgraded:
reboot
Reconnect via SSH after reboot.
Step 2 — Set a hostname (recommended)
A proper hostname helps with email deliverability and server management.
Check current hostname:
hostnamectl
Set a hostname (example):
hostnamectl set-hostname server1.example.com
Add an entry to /etc/hosts (replace IP + hostname):
nano /etc/hosts
Add a line like:
127.0.1.1 server1.example.com server1
Step 3 — Open required firewall ports (UFW)
CyberPanel and OpenLiteSpeed use multiple ports. Enable UFW and allow the most common ones:
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw allow 8090/tcp
ufw allow 7080/tcp
ufw enable
ufw status
What these ports are for
- 22: SSH
- 80: HTTP
- 443: HTTPS
- 8090: CyberPanel admin panel (default)
- 7080: OpenLiteSpeed WebAdmin (optional)
Step 4 — Install CyberPanel (official installer)
CyberPanel provides an installer script. Run it as root:
sh <(curl -s <https://cyberpanel.net/install.sh>)
You will be asked several questions. Typical recommended answers:
-
Install CyberPanel? →
1(Install CyberPanel) -
Which Web Server? →
1(OpenLiteSpeed)(Choose LiteSpeed Enterprise only if you have a license.)
-
Install Full service for CyberPanel? →
Y -
Do you want to use Remote MySQL? →
N(unless you already have one) -
Set password for CyberPanel admin → set a strong password (save it securely)
-
Install Memcached/Redis? → optional (Redis is useful for WordPress caching)
Installation may take several minutes.
After installation: note your login URL
When the installer completes, it typically shows:
- CyberPanel URL:
https://YOUR_VPS_IP:8090 - Username:
admin - Password: (the one you set)
If you can’t access the panel, re-check firewall rules and ensure your VPS provider isn’t blocking ports.
Step 5 — First login + basic security checklist
Open your browser:
https://YOUR_VPS_IP:8090
Because CyberPanel uses a self-signed certificate at first, your browser may show a warning. Proceed and log in.
Do these immediately:
- Change the admin password if you used a weak one
- Create a new admin user (optional) and disable the default if desired
- Enable automatic updates (where appropriate)
- Confirm your time zone and server settings
Optional: secure SSH (highly recommended)
If you know what you’re doing, you can harden SSH by:
- disabling root login
- using key-based authentication
- changing the SSH port (optional)
Step 6 — Add your domain and create a website
In CyberPanel:
- Go to Websites → Create Website
- Choose:
- Select Package:
Default(or create your own) - Owner:
admin(or another user) - Domain Name:
example.com
- Select Package:
- Turn on:
- SSL (you can also do it later)
- DKIM Support (useful if using email)
- Click Create Website
CyberPanel will provision:
- the web root
- vhost config
- DNS templates (optional)
- a database option (if you later install apps)
Step 7 — Issue a free SSL certificate (Let’s Encrypt)
After your DNS is pointing to your VPS, go to:
Websites → List Websites → Manage → Issue SSL
Click Issue SSL.
If SSL fails
Most SSL failures happen because:
- DNS hasn’t propagated yet
- the domain points to the wrong IP
- port 80/443 is blocked by firewall/provider
- Cloudflare proxy is enabled before issuing (try DNS-only first)
Step 8 — Install WordPress (one-click)
CyberPanel includes a WordPress installer.
Go to:
Websites → List Websites → Manage → Install WordPress
Fill in:
- site title
- admin username/password
- admin email
Then install.
Recommended WordPress performance settings
- Enable LiteSpeed Cache plugin (often pre-installed)
- Use **QUIC.cloud CDN** optionally
- Consider Redis if you enabled it during installation
Step 9 — “Free hosting” workflow (host multiple sites on one VPS)
To host multiple sites:
- Create additional websites in Create Website
- Point each domain to the VPS IP with DNS
Arecords - Issue SSL for each domain
- Use packages to limit disk/bandwidth per site (optional)
This is how people use a single VPS as a low-cost (sometimes called “free”) hosting platform.
Maintenance: updates, backups, and monitoring
Keep Ubuntu updated
apt update && apt -y upgrade
Backup strategy (recommended)
At minimum:
- backup website files (
/home/DOMAIN/public_html) - export databases (via CyberPanel or
mysqldump) - snapshot your VPS regularly (provider feature)
Monitor logs
Useful locations:
- OpenLiteSpeed logs:
/usr/local/lsws/logs/ - Website logs: inside each vhost directory
- System logs:
journalctl -xe
Troubleshooting (common issues)
1) Can’t access :8090
-
Check firewall:
ufw status -
Confirm service is running (names can vary):
systemctl status lscpd -
Confirm port is listening:
ss -tulpn | grep 8090
2) Domain opens default page / wrong site
- Verify DNS is correct
- In CyberPanel, confirm you created the website for that exact domain
- Clear browser cache and test in incognito
3) SSL won’t issue
- Wait for DNS propagation (can take minutes to hours)
- Ensure ports 80/443 are reachable from the internet
- If using Cloudflare, set to DNS only while issuing SSL
Conclusion
CyberPanel on Ubuntu is a powerful way to run your own hosting environment on a VPS—complete with a fast web server (OpenLiteSpeed), free Let’s Encrypt SSL, and easy WordPress deployment. Once installed, you can host multiple sites on one server and manage everything from a single dashboard.
If you want, I can also write:
- a version for Ubuntu 24.04 specifically
- a security hardening companion guide
- a guide for migrating an existing WordPress site into CyberPanel



Komentar
Posting Komentar