Install CyberPanel + OLS in Ubuntu – Step by Step
☰ In this chapter, you will learn
- How to Install CyberPanel with OpenLiteSpeed on Ubuntu Server.
- How to login into CyberPanel and OLS admin panel?
- How to reset OpenLiteSpeed login password?
Introduction to CyberPanel
CyberPanel is a simple, fast, and open-source web hosting control panel that makes it easier to create and manage websites, user accounts, security tweaks, SSH access, and more.
This control panel is powered by OpenLiteSpeed and is available for free to use. However, its enterprise version is a paid version, but you can also use the enterprise version for free for a single website.
If you want to set up CyberPanel on a CentOS machine, follow this article:
In this tutorial, we will guide you on how to install and set up CyberPanel with OpenLiteSpeed on an Ubuntu server.
Installation:
sudo apt update && sudo apt upgrade -y
sudo su - -c "sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)"
This may take few seconds... Branch name fetched...v2.3.5 Checking root privileges... You are runing as root... Valid IP detected... Checking server location... Desktop OS not detected. Proceeding System: Ubuntu 22 detected... Initialized...CyberPanel Installer v2.3.5 1. Install CyberPanel. 2. Exit. Please enter the number[1-2]: 1CyberPanel Installer v2.3.5 RAM check : 1945/7864MB (24.73%) Disk check : 5/251GB (3%) (Minimal 10GB free space) 1. Install CyberPanel with OpenLiteSpeed. 2. Install Cyberpanel with LiteSpeed Enterprise. 3. Exit. Please enter the number[1-3]: 1Install Full service for CyberPanel? This will include PowerDNS, Postfix and Pure-FTPd. Full installation [Y/n]: Y Full installation selected...Do you want to setup Remote MySQL? (This will skip installation of local MySQL) (Default = No) Remote MySQL [y/N]: NPress Enter key to continue with latest version or Enter specific version such as: 1.9.4 , 2.0.1 , 2.0.2 ...etc Press Enter Branch name set to v2.3.5Please choose to use default admin password 1234567, randomly generate one (recommended) or specify the admin password? Choose [d]fault, [r]andom or [s]et password: [d/r/s] r Admin password will be provided once installation is completed...Do you wish to install Memcached process and its PHP extension? Please select [Y/n]: Y Install Memcached process and its PHP extension set to Yes...Do you wish to install Redis process and its PHP extension? Please select [Y/n]: Y Install Redis process and its PHP extension set to Yes...Would you like to set up a WatchDog (beta) for Web service and Database service ? The watchdog script will be automatically started up after installation and server reboot If you want to kill the watchdog , run watchdog kill Please type Yes or no (with capital Y, default Yes): Yes Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Hit:5 https://ppa.launchpadcontent.net/wireshark-dev/stable/ubuntu jammy InRelease Reading package lists... Done Building dependency tree... Donegrep: /usr/local/CyberCP/public/snappymail.php: No such file or directory ################################################################### CyberPanel Successfully Installed Current Disk usage : 10/251GB (5%) Current RAM usage : 2231/7864MB (28.37%) Installation time : 0 hrs 38 min 0 sec Visit: https://152.59.142.43:8090 Panel username: admin Panel password: ksd&hEd_cF90#6 Run cyberpanel help to get FAQ info Run cyberpanel upgrade to upgrade it to latest version. Run cyberpanel utility to access some handy tools . Website : https://www.cyberpanel.net Forums : https://forums.cyberpanel.net Wikipage: https://docs.cyberpanel.net Docs : https://cyberpanel.net/docs/ Enjoy your accelerated Internet by CyberPanel & OpenLiteSpeed ################################################################### If your provider has a network-level firewall Please make sure you have opened following port for both in/out: TCP: 8090 for CyberPanel TCP: 80, TCP: 443 and UDP: 443 for webserver TCP: 21 and TCP: 40110-40210 for FTP TCP: 25, TCP: 587, TCP: 465, TCP: 110, TCP: 143 and TCP: 993 for mail service TCP: 53 and UDP: 53 for DNS service Your provider seems blocked port 25 , E-mail sending may not work properly. Would you like to restart your server now? [y/N]:
Make sure to copy the login information before rebooting your server.
Allow CyberPanel port in Firewall
To ensure CyberPanel works properly, it is recommended to add the following port to the ufw firewall.
8090 - CyberPanel port
7080 - OpenLiteSpeed Port
sudo ufw allow 8090
Rule added Rule added (v6)
sudo ufw allow 7080
Rule added Rule added (v6)
sudo ufw status
Status: active To Action From -- ------ ---- 22/tcp ALLOW Anywhere 3553 ALLOW Anywhere 80/tcp ALLOW Anywhere 20/tcp ALLOW Anywhere 34/udp ALLOW Anywhere 8080 ALLOW Anywhere 1487 ALLOW Anywhere 22222 DENY Anywhere Apache ALLOW Anywhere 8090 ALLOW Anywhere 7080 ALLOW Anywhere 22/tcp (v6) ALLOW Anywhere (v6) 3553 (v6) ALLOW Anywhere (v6) 80/tcp (v6) ALLOW Anywhere (v6) 20/tcp (v6) ALLOW Anywhere (v6) 34/udp (v6) ALLOW Anywhere (v6) 8080 (v6) ALLOW Anywhere (v6) 1487 (v6) ALLOW Anywhere (v6) 22222 (v6) DENY Anywhere (v6) Apache (v6) ALLOW Anywhere (v6) 7080 (v6) ALLOW Anywhere (v6)
Launch CyberPanel Dashboard
After installing and configuring CyberPanel on your Ubuntu machine, launch it in your web browser and log in.
https://yourserverip:8090
http://152.59.142.43:8090
Launch OpenLiteSpeed Dashboard
http://yourserverip:7080
http://152.59.142.43:7080
Default User id is admin and password is 123456. If it doesn't work, reset it as follows:
Reset OpenLiteSpeed Admin Panel Password
cd /usr/local/lsws/admin/misc/ $sudo ./admpass.sh
Please specify the user name of administrator. This is the user name required to login the administration Web interface. User name [admin]: admin Please specify the administrator's password. This is the password required to login the administration Web interface. Password: Type your new password Retype password: Retype your new password again Administrator's username/password is updated successfully!
Summary
In this tutorial, you have learned how to install and configure CyberPanel with OpenLiteSpeed on Ubuntu Server. In the next chapter, you will learn some more configuration of CyberPanel.