How to Install CyberPanel on Ubuntu: A Comprehensive Guide

Try this guide with our instant dedicated server for as low as 40 Euros

Cyberpanel on ubuntu

Mention control panels and most of us instantly think of cPanel.

It is a very popular choice and is often used by hosting providers that offer shared hosting solutions.

However, you can find control panels that are more user-friendly and easier to use on your Ubuntu 22.04 LTS server. CyberPanel is one such management panel that you should consider exploring.

CyberPanel is an open-source web hosting control panel. It manages several services like websites, email, DNS, and databases. This panel comes with a range of features, including one-click SSL certificate installation, automatic backups, one-click installation for WordPress/Joomla/Magento, etc.

This article will guide you through installing CyberPanel on your Ubuntu 22.04 LTS server. Whether you’re a seasoned sysadmin or a newbie, these step-by-step instructions will help you set up CyberPanel easily.

So, let’s get started and see how to install CyberPanel on your Ubuntu server.

But first, let’s discuss CyberPanel in a bit more detail.

Table Of Content

  1. Introducing CyberPanel
  2. CyberPanel is Available in Two Flavors
  3. What is LSCACHE used in CyberPanel?
  4. CyberPanel Server Setup Requirements
  5. Install CyberPanel on Ubuntu 22.04 LTS Server
    1. Step # 1: Update System Packages
    2. Step # 2: Install the Dependencies
    3. Step # 3: Download and Install CyberPanel
    4. Step # 4: Carry Out Initial Configuration
    5. Step # 5: Select the Appropriate CyberPanel Version
    6. Step # 6: . Install Full Service
    7. Step # 7: Choose Local or Remote MySQL Setup
    8. Step # 8: Select CyberPanel Version
    9. Step # 9: Set a Password for CyberPanel
    10. Step # 10: Install the CyberPanel Memcached PHP Extension
    11. Step # 11: Install CyberPanel Redis PHP Extension
    12. Step # 12: Finalize the Installation
  6. Allow CyberPanel Ports Through the Firewall
  7. Access CyberPanel
  8. Access the OpenLiteSpeed
  9. Conclusion
  10. FAQ

Introducing CyberPanel

CyberPanel is an open-source web hosting control panel that provides a robust and comprehensive graphical user interface (GUI) to manage websites, email accounts, databases, FTP accounts, and more. It has become increasingly popular among system administrators, developers, and web admins due to its ease of use and rich feature set.

CyberPanel supports a preinstalled stack consisting of Linux, LiteSpeed, MariaDB, and PHP. This stack offers a great foundation for popular web applications like WordPress and Joomla that you can install with just a click.

Security is built into CyberPanel, thanks to the support for Let’s Encrypt SSL certificates and enabling secure HTTPS connections to your website.

<strongid=”2″>CyberPanel is Available in Two Flavors

CyberPanel comes in two versions that support two different implementations of the LiteSpeed cache optimization solution.

The first version comes with OpenLiteSpeed, that’s free and open-source, making it an excellent choice for users who want to run their web server without purchasing a license. It offers basic features like SSL support, Multi-PHP support, built-in caching, and more.

The second version, the Enterprise edition, is CyberPanel’s paid version. It offers advanced features like LSCache for WordPress, HTTP/2 support, and server-level access control. It also includes additional security features such as malware scanning and two-factor authentication.

What is LSCACHE used in CyberPanel?

LSCACHE is a caching system used in Cyberpanel. It helps users to improve the performance of web pages and applications.

It decreases website load time by caching static content, including HTML, CSS, JavaScript, and images, into server memory. This reduces the number of requests that are forwarded to the server and helps reduce latency.

This also helps reduce bandwidth usage by reusing cached content. Furthermore, it can also be used as a reverse proxy to reduce load on the server.

CyberPanel Server Setup Requirements

CyberPanel is a free control panel for VPS and dedicated server environments. It is designed to offer a modern, user-friendly interface with powerful features so users can manage their websites and servers.

To set up CyberPanel, your server must meet the following requirements:

    1. Ubuntu 22.04 LTS x64 Server.
    2. 2GB of RAM or higher.
    3. 2 CPU cores or higher.
    4. 20GB of storage space or more.
    5. A static IP address.

After fulfilling the above prerequisites, it’s time to go into the details of installing CyberPanel on an Ubuntu server.

Install CyberPanel on Ubuntu 22.04 LTS Server

Here’re the steps you need to follow to install and set up CyberPanel on the Ubuntu server.

Step # 1: Update System Packages

The first step is to log in to your server using an SSH client such as PuTTY and update the system packages:

sudo apt-get update && sudo apt-get upgrade

1 Update system package

Once prompted, press Y to proceed further with the upgrade.

Step # 2: Install the Dependencies

Use the following command to install the CyberPanel dependencies:

sudo apt-get install python3 python3-dev python3-pip wget unzip rsync net-tools curl libssl-dev

2 Install dependencies

Once prompted, then Press Y to proceed further with the installation.

Step # 3: Download and Install CyberPanel

The following script will connect to the official website and download the latest version.

sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)

Since you’re logged in as a root user, the script checks the system compatibility and hardware resource requirements after downloading the files.

Step # 4: Carry Out Initial Configuration

Next, the installer will ask you to choose appropriate options to proceed with the installation.

You can select option “1” to install the CyberPanel control panel on your server. If you want to exit the installer, select option “2”.

3 Install Cyberpanel

Step # 5: Select the Appropriate CyberPanel Version

In the next step, the text-based installer will ask you to select a version for your CyberPanel installation. You can select “OpenLiteSpeed” or “LiteSpeed Enterprise” as per your choice.

4 Cyberpanel initial configuration
Step # 6:  Install Full Service

In this step, select the Full service for CyberPanel for your Ubuntu 22 server, including PowerDNS, Postfix, and Pure-FTPd.
Press Y to continue.

5 install full service
Step # 7: Choose Local or Remote MySQL Setup

Now you‘ll see an interesting choice related to MySQL database server.

CyberPanel works equally well with local and remote MySQL servers, and you can choose the scenario that works with your server infrastructure.

So, if you’re currently using a separate MySQL server, you can select the option “Y” so that the installer will not install MySQL service on your server.

If you want to install MySQL server on the same server, you can select the option “N” and proceed further. The default installation option is “No,” so you can proceed further if you don’t want to install a local MySQL server.

6 Remote MySQL
Step # 8: Select CyberPanel Version

The installer offers you a chance to select a specific version or just install the latest version.

7 Select Cyberpanel version

Step # 9: Set a Password for CyberPanel

The default password for Cyberpanel installation is 1234567. As you can see, this is pretty weak. CyberPanel allows you to set a stronger password for your installation.

For this, enter “s” and enter a strong password twice.

8 Manual set Cyberpanel password
Step # 10: Install the CyberPanel Memcached PHP Extension

Memcached is among the most popular PHP extensions. It is a high-performance, distributed memory caching system that speeds up web applications by reducing the load on the database.

It can be used for object, database, and page caching. RedSwitches recommend you install this extension during CyberPanel installation.

9 Install Memcached
Step # 11: Install CyberPanel Redis PHP Extension

Redis is another powerful tool for optimizing website performance.

The CyberPanel Redis extension allows developers to store and retrieve data from Redis, an in-memory data structure store. The extension offers many key benefits, including improved scalability, lower latency, and better resource utilization. RedSwitches recommend you install this extension on the server during the CyberPanel installation.

10 Install Redis

Step # 12: Finalize the Installation

Finalize the installation by going through the rest of the steps and finalize the process.

After this, access CyberPanel from your web browser. To do this, open a new tab and enter the IP address of your server, followed by port number 8090.

11 Finalise Cyberpanel installation

Allow CyberPanel Ports Through the Firewall

After the installation. The next step is to allow CyberPanel ports through the firewall.

It is important to ensure that the proper ports are whitelisted on the server’s firewall. By default, CyberPanel operates on port 8090 (HTTP) and 8091 (HTTPS). It is highly recommended that these ports are opened (whitelisted) to ensure users can access the control panel securely.

Use the following command to open these ports in the firewall.

sudo ufw allow 8090/tcp && sudo ufw allow 8091/tcp
sudo ufw allow 80,443,25,587,465,110,143,993,53,21/tcp
sudo ufw allow 443,53/udp

sudo ufw allow 40110:40210/tcp

Once these ports are opened, users should be able to access the CyberPanel control panel from any web browser.

12 Allow Cybpernel ports

IMPORTANT: If your server is behind RedSwitches’s hardware firewall, you may need to configure it differently to open the necessary ports. We highly recommend contacting our support through a ticket or email, or chat.

Access CyberPanel

Once you’ve accessed the CyberPanel login page, you can use the default credentials to log in.

First, enter “admin” as your username, and then type the password that you entered during the installation process.

13 Access Cyberpanel

After logging in, you can start configuring and managing your web hosting environment through CyberPanel’s control panel.

Start by creating an account, setting up DNS records, and installing applications.

14 Create new website
Access the OpenLiteSpeed

Once you have successfully installed CyberPanel on your Ubuntu 22.04 LTS server, you can access the OpenLiteSpeed web server at the following URL:

http://your-server-ipaddres:7080

If you’re unsure about the password, run the following command to reset the OpenLiteSpeed panel password:

/usr/local/lsws/admin/misc/admpass.sh

14 Reset openlitespeed password

15 Access openlitespeed

Conclusion

Congratulations! You’ve successfully installed CyberPanel on your Ubuntu 22.04 LTS server. Now you can easily start using CyberPanel to manage your web hosting environment. If you ever have issues or questions about using CyberPanel, contact their customer support team for assistance.

FAQ

1. What other operating systems does CyberPanel support?

→ CyberPanel is an open-source tool that supports various operating systems, including Ubuntu 22.04 LTS Server, CentOS 7/8, CloudLinux 7/8, Red Hat Enterprise Linux 6/7/8, Debian 9/10, and OpenSUSE 15.2.

2. What is a better control panel than CyberPanel?

→ When it comes to web hosting control panels, several options are available on the market. CyberPanel is a free and easy-to-use control panel, but other options may be better suited for certain users depending on their needs.

For those looking for a more robust solution, cPanel is one of the most popular web hosting control panels available. It offers a wide range of highly customizable features, making it ideal for larger businesses and organizations.

Plesk is another popular web hosting control panel that provides many features and flexibility. It can be used to manage multiple websites on the same server and configure email accounts, databases, and more.

Finally, Webmin is an open-source web hosting control panel with many advanced features. It is a great option for those who need access to more powerful tools and want to customize their environment.

3. What is the most stable CyberPanel version?

→ The most stable version of CyberPanel currently available is 2.2.6. This version provides a range of new features and improvements, making it one of the most reliable options for web hosting control panels. It also offers improved security, faster performance, and an enhanced user experience.

Try this guide with our instant dedicated server for as low as 40 Euros