How to Install CyberPanel on Ubuntu 20.04
CyberPanel also has some features that most other control panels don't have. This tutorial will show you how to set up CyberPanel with OpenLiteSpeed on Ubuntu 20.04 cloud server.
Condition
- VPS server running on Ubuntu 20.04 (any LTS) with at least 40GB of free disk space and at least 2GB of RAM. If you have a high-traffic blog, you will need more than 4GB of RAM for CyberPanel to function smoothly.
- Basic understanding of terminal commands in Linux.
- You must have a non-root user created with sudo access on the server.
Server update
The first step is to make sure that the server is up to date. CyberPanel may require newer versions of packages that are not shipped with Ubuntu 20.04 by default. The following commands will update everything on the system to the latest update, if you are running a custom kernel you will need to modify this command accordingly.
sudo apt-get update
sudo apt-get upgrade -y
You should restart the server after the update is complete to apply any necessary changes. Once the process is complete, log back in with the same non-root user and proceed to the next step.
sudo reboot now
As you know, Cyberpanel is an openlitespeed or litespeed enterprise web server, so uninstall Apache, MySQL, Postfix, Dovecot and other optional packages.
sudo systemctl stop apache2 sudo systemctl stop mysql sudo systemctl stop postfix sudo systemctl stop dovecot sudo apt-get remove -y apache2 mysql-server php5-mysql postfix dovecot-core sudo apt-get autoremove -y
Install CyberPanel on Ubuntu 20.04
In this section, we will install CyberPanel and OpenLiteSpeed on Ubuntu 20.04.
Download the latest version of the CyberPanel installer script to your home directory.
cd wget -O installer.sh https://cyberpanel.net/install.sh
Make the CyberPanel installer script executable.
chmod + x installer.sh
Run the CyberPanel installation script.
sh installer.sh
During the installation process, CyberPanel will ask you a series of prompts as shown below.
Select 1 to start installing CyberPanel. The CyberPanel setup script will start installing CyberPanel in the /var/www directory.
Choose 1 if you want to install CyberPanel with OpenLiteSpeed (free version). Choose 2 if you are a CyberPanel Enterprise user or a CyberPanel Cloud customer. The free version is optional that will apply in this guide.
This script will then start downloading and installing the packages you have selected. You will be asked to choose whether to install Full or install Lite, Full installation is a CyberPanel installation with PowerDNS, Postfix and Pure-FTPd. Installing CyberPanel Lite only installs CyberPanel. Articles choose 1 to install CyberPanel fully.
The next step asks you about Remote MySQL Server. CyberPanel needs a MySQL server to work properly, so the article will install CyberPanel Database locally on the same server where CyberPanel is being installed.
CyberPanel will ask for a password for the admin account. The default password is 1234567. Choose an easy-to-remember password, CyberPanel doesn't require an extremely secure password but it's best to choose something harder to crack than 'password' or '1234'.
Now, install the CyberPanel Memcached plugin, CyberPanel's Memcached implementation is better than the Litespeed implementation. This way, CyberPanel can use the native Memcached libraries to improve performance and security.
Redis acts as an in-memory data structure and message broker. It is free and open source. CyberPanel supports Redis as a cache backend for CyberPanel page caching and session management. Select Y, then CyberPanel will install and configure the CyberPanel Redis plugin.
Type Y to start WatchDog. This plugin helps CyberPanel detect corrupt database tables and alert CyberPanel administrators if there are any problems with the database.
Script will take care of the rest after you answer all the questions in the setup wizard. Installing CyberPanel will take some time (15 - 30 minutes) as it requires a lot of packages to be compiled and installed.
Please be patient. Do not close the Terminal window until the Cyberpanel installation is finished.
After you complete the installation, your output should look like shown below.
Hope you are succesful.
You should read it
- How to install Ubuntu in parallel with Windows using USB
- How to install Putty SSH Client on Ubuntu 20.04 LTS
- Instructions on how to install Ubuntu on VirtualBox virtual machine
- How to install Hyper Terminal in Ubuntu 20.04
- Instructions to install Ubuntu directly from the hard drive
- How to install Pip in Ubuntu
- How to install µTorrent (uTorrent) in Ubuntu 20.04
- How to Install ClickHouse on Ubuntu 22.04
- How to install MySQL on Ubuntu 20.04
- How to Install Ubuntu Linux Without CD (Windows)
- Instructions for installing Ubuntu on VMware Workstation - Part 2
- 5 things to do when installing Ubuntu on PC