Install CloudPanel on Ubuntu and Debian | Free Control Panel

Posted on

Install CloudPanel on Ubuntu and Debian | Free Control Panel

Install CloudPanel on Ubuntu and Debian | Free Control Panel

In this guide, we want to teach you to Install CloudPanel on Ubuntu and Debian from the Linux Terminal. For a start, let’s see what CloudPanel is and get familiar with its features.

What Is CloudPanel?

CloudPanel is a free and easy-to-use web hosting control panel that you can use to configure and manage web servers and web apps. Also, it has amazing features that include:

  • Free: CloudPanel is completely free to use.
  • User-Friendly: It has a simple and intuitive interface.
  • Secure: CloudPanel is designed with security in mind and has a built-in firewall.
  • Supports Multiple PHP Versions: CloudPanel supports multiple PHP versions, so you can use the version that is best suited for your web applications.
  • Supports Let’s Encrypt: CloudPanel supports Let’s Encrypt, so you can easily install SSL certificates for your websites.
  • One-Click Installer: You can install popular web applications such as WordPress, Joomla, and Drupal with just one click.
  • Supports Docker: You can manage Docker containers with CloudPanel.
  • Supports Git: You can manage Git repositories with CloudPanel.

Now you can follow the steps below to Install CloudPanel on Ubuntu and Debian.

The CloudPanel installer supports the Ubuntu 22.04 and Debian 11 operating systems.

To Install CloudPanel on Ubuntu and Debian, you must have access to your Debian and Ubuntu server as a root or non-root user with sudo privileges and set up a basic firewall. For this purpose, you can visit the Orcacore website and check the Debian 11 and Ubuntu 22.04 initial server setup guides:

Initial Server Setup with Debian 11

Initial Server Setup with Ubuntu 22.04

Also, you need at least 1 GB RAM, 1 Core CPU, and 10 GB of free Space.

Step 1 – Run System Update on Ubuntu and Debian

First, you must run the system update and upgrade by using the commands below:

# sudo apt update
# sudo apt upgrade -y

When you are done, use the command below to install the required packages:

sudo apt install wget curl

Step 2 – Download and Install CloudPanel Installer Script on Ubuntu and Debian

At this point, we want to show you how to download the CloudPanel installer script for Ubuntu 22.04 and Debian 11 with your preferred database engine.

CloudPanel with MySQL 8.0

If you want to use MySQL 8.0, you need to run the command below to download and install the CloudPanel on Ubuntu and Debian:

curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh; 
echo "3c30168958264ced81ca9b58dbc55b4d28585d9066b9da085f2b130ae91c50f6 install.sh" | 
sha256sum -c && sudo bash install.sh

CloudPanel with MariaDB 10.11

If you prefer to use MariaDB 10.11, you must run the command below:

curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh; 
echo "3c30168958264ced81ca9b58dbc55b4d28585d9066b9da085f2b130ae91c50f6 install.sh" | 
sha256sum -c && sudo DB_ENGINE=MARIADB_10.11 bash install.sh

CloudPanel with MariaDB 10.6

Or, you can use the command below for MariaDB 10.6:

curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh; 
echo "3c30168958264ced81ca9b58dbc55b4d28585d9066b9da085f2b130ae91c50f6 install.sh" | 
sha256sum -c && sudo DB_ENGINE=MARIADB_10.6 bash install.sh

In this guide, we use MariaDB 10.11 for the CloudPanel installation.

Note: These installer scripts will install and configure all the required packages and components.

When your installation is completed, you will get the following output:

**Output**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The installation of CloudPanel is complete!

CloudPanel can be accessed now: https://your-server-ip:8443
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Step 3 – Configure Firewall For CloudPanel

At this point, if you have a running UFW firewall, you must allow port 8443 through your Debian and Ubuntu firewall by using the command below:

sudo ufw allow 8443/tcp

Reload the firewall to apply the new rules:

sudo ufw reload

Step 4 – How To Access CloudPanel via Browser on Ubuntu and Debian?

At this point, you can access your CloudPanel by typing your server’s IP address in your web browser followed by 8443:

https://your-server-ip:8443

Now you will see the following screen and you must create an Admin user for CloudPanel.

Create an Admin user for CloudPanel

To create your Admin user, enter your data and click on Create User.

Admin user CloudPanel
Install CloudPanel on Ubuntu and Debian – CloudPanel Admin User

Then, you will see your CloudPanel login screen. Enter your Admin user and password and click Log in.

CloudPanel login page
Install CloudPanel on Ubuntu and Debian – CloudPanel Login

Then, you will see your CloudPanel dashboard.

CloudPanel dashboard Ubuntu Debian
Install CloudPanel on Ubuntu and Debian – CloudPanel Dashboard

At this point, you can easily manage your cloud server and web applications, all from a user-friendly web interface.

For more information, you can visit CloudPanel Documentation

Conclusion

Now you have learned to Install CloudPanel on Ubuntu 22.04 and Debian 11 by using the installer script from the Linux terminal and accessing your dashboard via the web interface.

Hope you enjoy it. You may be interested in these articles:

Install aaPanel on Ubuntu 22.04

Set up aaPanel on Debian 11

How To Install Plesk on Debian 11

How To Install Plesk on Ubuntu 22.04

Alternative Solutions to Installing CloudPanel

While the provided script-based installation method is convenient, there are alternative approaches to deploying CloudPanel on Ubuntu and Debian. These methods offer different levels of control and flexibility.

1. Manual Installation from Source

This method provides the greatest control over the installation process. Instead of relying on a pre-built script, you download the CloudPanel source code and manually configure each component. This allows you to customize the installation to your specific needs and potentially optimize performance. However, it requires a deeper understanding of Linux system administration and the various components that make up CloudPanel.

Explanation:

The manual installation involves downloading the necessary packages (e.g., Nginx, PHP, MySQL/MariaDB), configuring them individually, and then installing the CloudPanel application on top of them. This approach offers granular control, allowing you to fine-tune each component according to your server’s resources and requirements. It also enables you to integrate CloudPanel with existing infrastructure or custom configurations.

Steps involved:

  1. Install Required Packages: Manually install Nginx, PHP, MySQL/MariaDB, and other dependencies.
  2. Download CloudPanel Source: Obtain the CloudPanel source code from the official repository or website.
  3. Configure Components: Configure each component (Nginx, PHP, database) according to CloudPanel’s requirements.
  4. Install CloudPanel: Manually install and configure the CloudPanel application.
  5. Set Permissions: Set the appropriate file and directory permissions for CloudPanel.
  6. Start Services: Start the necessary services (Nginx, PHP, database, CloudPanel).

Considerations:

  • This method is time-consuming and requires advanced technical skills.
  • It provides the highest level of customization and control.
  • It allows for integration with existing infrastructure and custom configurations.
  • Careful attention to detail is required to avoid errors and ensure proper functionality.

2. Using Docker Compose

Docker Compose provides a way to define and manage multi-container Docker applications. You can use Docker Compose to create a docker-compose.yml file that defines all the services required for CloudPanel, including the web server, database, and CloudPanel application itself. This approach simplifies the deployment process and ensures that all dependencies are properly configured.

Explanation:

Docker Compose allows you to define your application’s architecture in a declarative way. The docker-compose.yml file specifies the services that make up your application, their dependencies, and their configuration. When you run docker-compose up, Docker Compose automatically builds and starts the containers in the correct order, ensuring that all dependencies are met.

Code Example (docker-compose.yml):

version: "3.9"
services:
  mariadb:
    image: mariadb:10.6
    environment:
      MYSQL_ROOT_PASSWORD: your_root_password
      MYSQL_DATABASE: cloudpanel
      MYSQL_USER: cloudpanel
      MYSQL_PASSWORD: your_cloudpanel_password
    volumes:
      - mariadb_data:/var/lib/mysql

  cloudpanel:
    image: cloudpanel/cloudpanel:latest #Replace with the correct image name
    ports:
      - "80:80"
      - "443:443"
      - "8443:8443"
    depends_on:
      - mariadb
    environment:
      DB_HOST: mariadb
      DB_PORT: 3306
      DB_DATABASE: cloudpanel
      DB_USER: cloudpanel
      DB_PASSWORD: your_cloudpanel_password
    volumes:
      - cloudpanel_data:/opt/cloudpanel/

volumes:
  mariadb_data:
  cloudpanel_data:

Steps Involved:

  1. Install Docker and Docker Compose: Ensure Docker and Docker Compose are installed on your server.
  2. Create docker-compose.yml: Create a docker-compose.yml file defining the CloudPanel services (web server, database, CloudPanel).
  3. Configure Environment Variables: Set the necessary environment variables for each service (database credentials, ports).
  4. Run Docker Compose: Execute the command docker-compose up -d to start the CloudPanel stack.

Considerations:

  • Requires familiarity with Docker and Docker Compose.
  • Provides a portable and reproducible deployment environment.
  • Simplifies the management of CloudPanel and its dependencies.
  • Allows for easy scaling and updating of the application.

These alternative methods offer different trade-offs between control, complexity, and ease of use. The best approach depends on your specific requirements, technical skills, and the level of customization you need. The script-based installation is the simplest and quickest way to get started, while manual installation and Docker Compose provide more flexibility and control.

Leave a Reply

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