How To Install CyberPanel On Ubuntu 20.04 LTS Server
Learn the steps and commands to install open source CyberPanel on Ubuntu 20.04 LTS server to have your web control panel to host and manage websites and other web applications.
CyberPanel is a stable open source control panel that can be easily installed on any VPS or dedicated server running on Linux server operating system. It helps users easily manage their command line server using the web interface and allows hosting websites through the built-in web server and other required components like PHP.
Instead of Apache, CyberPanel offers a well-optimized Litespeed lightweight web server. It is compatible with Apache host configuration files and can also handle large amounts of requests using a well-developed caching system called LSCACHE, but usually requires an additional license.
Cyberpanel is available in two editions, one is using open source LiteSpeed web server edition known as OpenLitespeed while the other is with Litespeed web server company which is free for one domain with one worker (process) and limited to 2 GB of RAM only. For more domains, support for more RAM and workers requires the purchase of a CyberPanel Enterprise license.
Therefore, if you don’t want to invest extra money in a web server control panel platform, it is better to opt for an open source version of Litespeed cache when installing CyberPanel on Ubuntu 20.04 Linux.
Steps to Install CyberPanel on Ubuntu 20.04 LTS Linux
To follow this tutorial, your Linux server must completely fulfill the items listed:
⇒ Server with new Ubuntu 20.04 OS and sudo access
⇒ Python 3.x
⇒ 1 GB of RAM or more
⇒ 10 GB disk space
Update Ubuntu 20.04
Connect to your remote Ubuntu 20.04 Focal Server via SSH or a direct command-line web interface offered by your VPS or cloud service provider. Here we are using Amazon Lightsail Ubuntu 20.04 server. After that, run the system update and upgrade command to make sure our server is up to date.
sudo apt update && sudo apt upgrade
Install wget & curl
To run the script provided by Cyberpanel developers to install their hosting control panel, we need
curl tools on our system.
sudo apt install wget curl -y
Install CyberPanel on Ubuntu 2 0.04 LTS
After following the previous steps, our Ubuntu 20.04 Linux system is ready to install CyberPanel. To make it easier for users, the developers of this open source control panel offer a script. Running which will automatically install the CyberPanel, of course, some inputs are required which we will also discuss here.
Switch to the root user:
sudo su -
Let’s download and run the CyberPanel installation script.
sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
Once the script is downloaded and run as the root user, it will start by checking the system compatibility and whether or not it meets the hardware resource requirements.
Step 1: The text assistant will ask you to enter ‘1‘ to start the installation process. If you want to exit, type the number 2 and press the Enter key.
2nd step: Select the web server type. If you want the open source LiteSpeed, select the first option with OpneLiteSpeed, while those who want the Enterprise edition can opt for the second.
Step 3: Install CyberPanel full service on Ubuntu 20.04, just type Yes and hit it Walk in key.
Step 4: Do you want to configure a remote MySQL database? Well, if you already have a MySQL server running on a remote server, select the Yes option otherwise press NOT and press the Enter key. Well, if you have no idea about it, it’s advised to select NOT to let CyberPanel install the MySQL Server on the same Ubuntu 20.04 VPS where you install the CyberPanel.
Step 5: Press Enter key after that let Cyber Panel select the latest version to install. After that, the setup will ask you to set the administrator password. If you ignore this, the setup will set the default password for the control panel Admin user, i.e. 1234567. However, it is recommended to manually set strong passwords here. For this use the option ‘s‘ and press the Enter key. Once done, type the password twice that you want to configure.
Install PHP and its extension along with other things; the process will ask for your permission.
Wait for some time until the script completes the installation process. Once the process is complete, you will have the indication of it as well as the IP address of your Ubuntu 20.04 which you can use to access the CyberPanel web interface.
Restart your system by pressing Yes to complete the installation of CyberPanel.
Ports must be open in the firewall
If you are using a firewall on Ubuntu 20.04, open the following ports. Whereas, if you are on a cloud service provider, open the required ports in the service provider’s firewall.
For UFW firewall only, if installed otherwise skip this:
sudo ufw allow 8090,80,443,25,587,465,110,143,993,53,21/tcp
sudo ufw allow 443,53/udp
sudo ufw allow 40110:40210/tcp
To note: If you are a VPS or Cloud server user with a service provider firewall, open the above ports instead of using ufw.
Once you have opened the ports, open a browser on your system which can access the server IP address and get the OpenLiteSpeed web interface by typing-
CyberPanel web interface
For web hosting control panel management interface use-
How to Change OpenLiteSpeed and CyberPanel Web Admin Password
If you forgot the password set for the OpenLiteSpeed web interface and CyberPanel Admin, here’s how to change the passwords for them.
Go to your Ubuntu 20.04 command terminal where Cyberpanel has been installed.
For CyberPanel back-end running on port number 8090:
sudo adminPass your-new-password
To note: replace the Your new password with the password you want to set for CyberPanel Admin users:
For CyberPanel OpenLite Speed Web administration interface running on port number 7080.
Now you can easily manage your web server and website using OpenLiteSpeed and CyberPanel web hosting control panel running on Ubuntu 20.04 LTS Linux. For more details, see the official Cyberpanel documentation.
⇒ 6 Best Free Cloud Hosting Control Panels for Linux Servers for 2022
⇒ Install open source CyberPanel on Almalinux | Rocky linux 8
⇒ How to Install OpenLiteSpeed Web Server on AlmaLinux 8 or Rocky
⇒ List open or closed ports in UFW firewall on Ubuntu 20.04