Advanced TutorialsComputingInternetNews

Installing CyberPanel on Ubuntu: A Comprehensive Guide

CyberPanel is a powerful and user-friendly web hosting control panel.

CyberPanel is designed to simplify server management tasks on Linux-based systems like Ubuntu. In this article, we’ll walk you through the step-by-step process of installing CyberPanel on your Ubuntu server.

Before we begin, ensure that your Ubuntu server meets the following requirements:

  • Fresh installation of Ubuntu 18.04, 20.04, or 22.04
  • Minimum 1GB RAM (2GB or higher recommended)
  • At least 10GB of disk space

First, log in to your Ubuntu server via SSH and update the system packages to ensure you have the latest versions installed:

sudo apt update
sudo apt upgrade

Next, install the required dependencies for CyberPanel:

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

Step 3: Download and Run the Installation Script

CyberPanel provides a convenient installation script that automates the entire process. Run the following command to download and execute the script:

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

Step 4: Select Installation Options

The installation script will guide you through several options. Follow the prompts and make your selections:

  1. Choose option “1” to install CyberPanel.
  2. Select the desired version of LiteSpeed Web Server: “OpenLiteSpeed” (free) or “LiteSpeed Enterprise” (paid)[1].
  3. Choose “Y” to install the full service, including PowerDNS, Postfix, and Pure-FTPd[1].
  4. Select “N” to skip remote MySQL setup and continue with the local MySQL server setup[1].
  5. Choose the latest MySQL version unless you need a specific older version[1].
  6. Set an admin password for CyberPanel when prompted[1].
  7. Decide whether to install Memcached and its PHP extension[1].
  8. Choose whether to install Redis and its PHP extension[1].
  9. Select whether to install WatchDog (currently in beta)[1].

Step 5: Allow CyberPanel Ports Through the Firewall

After the installation is complete, you’ll need to allow CyberPanel ports through the firewall.

  1. First, list all the currently listening ports using the netstat command:
sudo netstat -tunlp
  1. Look for the ports used by CyberPanel in the output. The default ports opened by CyberPanel are:
  • TCP 8090 for the CyberPanel web interface
  • TCP 80 and 443 for HTTP/HTTPS web traffic
  • TCP 21 and TCP 40110-40210 for FTP
  • TCP 25, 587, 465, 110, 143, and 993 for mail services
  • TCP and UDP 53 for DNS services[2][4]
  1. If you see these ports listed in the netstat output, it means they are open and listening for connections.
  2. Alternatively, you can use the lsof command to list open files, including network sockets:
sudo lsof -i -P

lsof will show you all the open network connections, including the ports and the processes using them[1].

  1. You can also use the nmap tool to scan your server for open ports:
sudo nmap -sS -O localhost

This will perform a SYN stealth scan on your local machine and list all the open ports along with some information about the operating system’

If you find the ports are not open, run the following commands to allow access to the http portal:

sudo ufw allow 8090/tcp
sudo ufw allow 8091/tcp
sudo ufw allow 53/tcp
sudo ufw allow 53/udp
  1. To open the CyberPanel web interface port (8090) permanently:
sudo firewall-cmd --permanent --add-port=8090/tcp
  1. To open the HTTP (80) and HTTPS (443) ports for web traffic:
sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
  1. To open the FTP ports (21 and 40110-40210):
sudo firewall-cmd --permanent --add-port=21/tcp
sudo firewall-cmd --permanent --add-port=40110-40210/tcp
  1. To open the mail service ports (25, 587, 465, 110, 143, 993):
sudo firewall-cmd --permanent --add-port=25/tcp
sudo firewall-cmd --permanent --add-port=587/tcp
sudo firewall-cmd --permanent --add-port=465/tcp
sudo firewall-cmd --permanent --add-port=110/tcp
sudo firewall-cmd --permanent --add-port=143/tcp
sudo firewall-cmd --permanent --add-port=993/tcp
  1. To open the DNS ports (53 TCP and UDP):
sudo firewall-cmd --permanent --add-port=53/tcp
sudo firewall-cmd --permanent --add-port=53/udp

After adding the required ports, you need to reload the firewall for the changes to take effect:

sudo firewall-cmd --reload

These commands will permanently open the necessary ports for CyberPanel in the firewalld firewall on your Ubuntu server[1][2][3][4]. Remember to open any additional custom ports required by your applications or services.

  1. Log in to the CyberPanel web interface by navigating to https://your-server-ip:8090 in your web browser.
  2. From the left sidebar menu, go to “Server” > “Security” > “Firewall”[1][2].
  3. On the Firewall page, you will see a list of existing firewall rules. The default ports opened by CyberPanel are:
  • TCP 8090 for the CyberPanel web interface
  • TCP 80 and 443 for HTTP/HTTPS web traffic
  • TCP 21 and TCP 40110-40210 for FTP
  • TCP 25, 587, 465, 110, 143, and 993 for mail services
  • TCP and UDP 53 for DNS services[5]
  1. Verify that these ports are listed in the firewall rules. If a port is missing, you can add a new rule by clicking the “Add” button and providing the required details (rule name, protocol, and port number)[1][3].
  2. If you have added any custom ports for your applications or services, ensure those ports are also listed in the firewall rules.

By following these steps, you can easily check if the necessary CyberPanel ports are open in the firewall. If a required port is not open, you can add a new firewall rule to allow traffic through that port.

Step 6: Access CyberPanel

You can now access the CyberPanel web interface by navigating to https://your-server-ip:8090 in your web browser. Use the admin username “admin” and the password you set during the installation[2].

Congratulations! You’ve successfully installed CyberPanel on your Ubuntu server. From the CyberPanel dashboard, you can manage websites, databases, email accounts, and various other server settings with ease[2].

Conclusion

Unleash your WordPress potential with the ultimate beginner’s guide! “WordPress All-in-One for Dummies (For Dummies (Computer/Tech)) 4th Edition” by Lisa Sabin-Wilson is a must-have resource for anyone looking to master the world’s most popular website building platform. With easy-to-follow instructions and expert tips, this book will empower you to create, customize, and manage your WordPress site like a pro. Don’t miss out – grab your copy on Amazon today and unlock the full power of WordPress!

Citations:
[1] https://inguide.in/install-cyberpanel-on-ubuntu-and-create-wordpress-website/
[2] https://www.inmotionhosting.com/support/edu/cyberpanel/install-cyberpanel/
[3] https://www.redswitches.com/blog/cyberpanel-on-ubuntu/
[4] https://cyberpanel.net/KnowledgeBase/home/install-cyberpanel/
[5] https://ultahost.com/knowledge-base/install-cyberpanel-on-ubuntu/

Bill

Bill is a passionate network engineer who loves to share his knowledge and experience with others. He writes engaging blog posts for itacute.com, where he covers topics such as home and small business networking, electronic gadgets, and tips and tricks to optimize performance and productivity. Bill enjoys learning new things and keeping up with the latest trends and innovations in the field of technology.

Leave a Reply

Your email address will not be published. Required fields are marked *