How to Install CloudPanel on Ubuntu 22.04

Step 1: Login via SSH to the Server

If you are using a private key to login, use the following command:

bashCopy codessh -i path_to_your_private_key root@yourIpAddress

If you are using a password to login, use the following command:

bashCopy codessh root@yourIpAddress

Step 2: Update the System and Install Required Packages

Before running the installer, update your system and install the necessary packages:

bashCopy codeapt update && apt -y upgrade && apt -y install curl wget sudo

Step 3: Run the Installer with Your Preferred Database Engine

CloudPanel supports multiple database engines. You can choose between MySQL 8.0 and MariaDB 10.11.

For MySQL 8.0, use the following command:

bashCopy codecurl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh; \
echo "2aefee646f988877a31198e0d84ed30e2ef7a454857b606608a1f0b8eb6ec6b6 install.sh" | \
sha256sum -c && sudo bash install.sh

For MariaDB 10.11, use the same command since the installer will prompt you to choose the database during the installation process.

Supported Operating Systems

CloudPanel can be installed on the following operating systems:

  • Ubuntu 24.04 LTS
  • Ubuntu 22.04 LTS
  • Debian 12 LTS
  • Debian 11 LTS

Step 4: Access CloudPanel

Once the installation is complete, you can access CloudPanel via a web browser. Navigate to:

arduinoCopy codehttp://your_server_ip:8443

Replace your_server_ip with the IP address of your Ubuntu server.

Step 5: Complete the Installation

Follow the on-screen instructions to set up an admin account and configure basic settings.

Optional: Secure Your Installation with HTTPS

For enhanced security, consider securing your CloudPanel installation with HTTPS using Let’s Encrypt.

  1. Install Certbot:bashCopy codesudo apt install -y certbot
  2. Obtain a Certificate:bashCopy codesudo certbot certonly --standalone -d your_domain_name Replace your_domain_name with your actual domain name.
  3. Configure CloudPanel to Use SSL: Edit the CloudPanel configuration file to use the obtained SSL certificate.

By following these steps, you should have CloudPanel installed and running on your Ubuntu 22.04 server, ready to manage your web server efficiently.