Get Rewarded! We will reward you with up to €50 credit on your account for every tutorial that you write and we publish!

How To Install CloudPanel on Debian 10

profile picture
Author
Azad Shaikh
Published
2022-06-03
Time to read
6 minutes reading time

About the author- CTO @ Maskoid Technologies Private Limited

Introduction

Welcome to the tutorial titled How To Install CloudPanel on Debian 10. CloudPanel is a modern server control panel with lightweight components for PHP applications with specific features for all major clouds.

Features

  • Secure (free SSL/TLS certificates).
  • High Performance.
  • Ready to go within 1 minute.
  • Supports all major clouds.
  • Available in more than ten languages.

Prerequisites

For installing CloudPanel, you will need root access to your server.

CloudPanel needs very minimal system requirements for setup.

  • You need an empty/fresh server with Debian 10 (Buster) with root access.
  • You must have root access or access to a user with Sudo privileges.
  • CPU: 2 vCores
  • RAM: 2 GB
  • Space: 20 GB

Technology Stack

The technology stack of CloudPanel consists of modern and lightweight components for maximum performance for PHP applications.

  • Debian 10.
  • NGINX 1.18 with PageSpeed Module.
  • MySQL 5.7 (Percona).
  • PHP [7.1 to 8.1].
  • Redis 5
  • ProFTPD 1.3
  • Node.js 14
  • Yarn 1.22

We are using the below terminology in this tutorial:

  • Username: root (any root privileges user).
  • Hostname: cloudpanel-416cd680.nip.io (you can set as you like).
  • Domain: cloudpanel-416cd680.nip.io (you can set as you like).
  • CloudPanel Username: admin.user (you can set as you like).

Step 1 - Configure the hostname

Important: For hostname, use a sub-domain like hostname.domain.com. If you set your primary Domain (e.g. domain.com) as hostname, then you will not be able to use that Domain for the website inside the control panel.

hostnamectl set-hostname cloudpanel-416cd680.nip.io

for check hostname

hostnamectl

You can see as below output :

Hostname

Now, we will update our server using the below command.

sudo apt update && sudo apt -y upgrade

Install Wget and Curl.

sudo apt -y install curl wget

Pre installations steps are completed, and now we will start CloudPanel installation.

Step 2 - Install the latest version of CloudPanel

To start the CloudPanel installation, run the following command:

curl -sSL https://installer.cloudpanel.io/ce/v1/install.sh | sudo bash

Output looks like:

Cloudpanel Installed

Step 3 - Login CloudPanel & Create User

Your server is now set up and ready to use. You can log in at: https://your-ip-or-URL:8443.

CloudPanel use self signed certificate for SSL, so ignore "Your connection is not private" warning. When we log in the first time, we need to create an admin user.

Admin User Creation

Now enter all the required details like Name, User Name, Password, etc., to create an Admin account. Make sure you save this username and password.

Once your Account is successfully created, you can log in with your created admin user.

Login Page

Dashboard of CloudPanel

Your setup is now done! CloudPanel dashboard looks like this:

Dashboard

Step 4 - Important Settings

  • Secure server with Two-Factor authentication.

Go to Account under Admin User.

Go To Account Settings

Click Security and enable Two-Factor authentication.

Go To Security

Using an authenticator app, scan the QR code. It will display a six digit code which you need to enter below.

Two Factor

  • Block unwanted IP addresses.

Go to Security under navigation.

Security Navigation

Add IP address whichever you want to block.

Block IP

Step 5 - Add Users

So, the basic setup is completed; let's add our users.

SSH Users:

  • Go to Users under navigation.

Go TO User

Click to Add User, add username/password and save it.

Add SSH User

FTP Users:

Go to Users under navigation (same as the above step). Select FTP Users. Fill up all Username/Password and home directory and click to Add User.

Add FTP User

Step 6 - Add a Domain

  • We just created an Account. Now, Let's add Domain.

Go to Domains under navigation.

Domain Navigation

Fill up your domain name, select Vhost Template & PHP Version and click to Add Domain.

Add Domain

You can change domain settings; just click on the Domain link, and you will see domain setting as below:

Domain Setting

Step 7 - Add a Databases

Let's add our first database. For adding a new database, click the database icon.

Go To Database

Click on Add Databases, fill up database name, username, password and save it.

Add Database

  • PhpMyAdmin

Click on phpMyAdmin under databases for open PhpMyAdmin on new tab.

Go TO Phpmyadmin

Step 8 - File Manager

CloudPanel doesn't provide a File Manager; you have to use any FTP or File Manager tool (our recommendation is to use FileZilla) to manage your files.

Step 9 - Cron Jobs

Cron Jobs are used for scheduling tasks to run on the server, with help of cron jobs, you can perform scheduling tasks to be executed sometime in the future.

  • Go to Cron Jobs under navigation.

Go To Cron Jobs

Click to Add Cron Job, add cron data and save it.

Save Cron Jobs

Step 10 - Services

From here, you can check and restart services such as SQL, Nginx, PHP & Redis.

Go To Services

Services page looks like:

Service Page

Admin Area

We learned about Users, Domains, Databases, Cron, Jobs and Services. Now we look Admin Area of CloudPanel.

  • Go to Admin Area to open it.

Go To Admin

  1. Users :
  • You can Add or Delete users from here also; you can give admin roles.

Add Users

  1. Vhost Templates :
  • You can Add or Delete Applications from here.

Vhost Application

  1. database Servers :
  • You can Add or Delete Database Servers from here.

Add Database Servers

  1. Action Log :
  • You can check logs from here.

Action Log

  1. Settings :
  • Last but not the least step, from here, you can change Proftpd settings.

Proftpd Settings

Conclusion

In this tutorial, we learned How To Install CloudPanel on Debian 10. Give it a try!

Cheers!!

License: MIT

Want to contribute?

Get Rewarded: Get up to €50 in credit! Be a part of the community and contribute. Do it for the money. Do it for the bragging rights. And do it to teach others!

Report Issue
Try Hetzner Cloud

Get 20€ free credit!

Valid until: 31 December 2024 Valid for: 3 months and only for new customers
Get started
Want to contribute?

Get Rewarded: Get up to €50 credit on your account for every tutorial you write and we publish!

Find out more