Introduction: Welcome to the tutorial on how to install CloudPanel on Debian 10. CloudPanel is a modern server control panel designed for PHP applications with specific features optimized for all major cloud platforms. It offers security, high performance, and is ready to use within minutes. This tutorial will guide you through the installation process.

Features:

  • Secure (free SSL/TLS certificates).
  • High Performance.
  • Quick setup (ready within 1 minute).
  • Compatible with major cloud platforms.
  • Available in over ten languages.

Prerequisites:

Before installing CloudPanel, ensure you have the following:

  • Root access to your server.
  • A fresh Debian 10 (Buster) server with root access.
  • Root access or a user with Sudo privileges.
  • Server specifications:
    • CPU: 2 vCores
    • RAM: 2 GB
    • Disk Space: 20 GB

Technology Stack:

CloudPanel's technology stack includes lightweight and modern components for optimal PHP application performance. It consists of:

  • 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.

Terminology Used in This Tutorial:

  • Username: root (or any user with root privileges).
  • Hostname: cloudpanel-416cd680.nip.io (you can choose your own).
  • Domain: cloudpanel-416cd680.nip.io (you can choose your own).
  • CloudPanel Username: admin.user (you can choose your own).

Step 1: Configure the Hostname

Important: Use a sub-domain (e.g., hostname.domain.com) for the hostname. Do not set your primary domain (e.g., domain.com) as the hostname, as it will prevent you from using that domain for websites inside the control panel.

  1. Set the hostname using hostnamectl.
  2. Verify the hostname using hostnamectl.
  3. Update the server using sudo apt update && sudo apt -y upgrade.
  4. Install Wget and Curl using sudo apt -y install curl wget.

Step 2: Install the Latest Version of CloudPanel

Execute the following command to install CloudPanel:

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

Step 3: Login to CloudPanel & Create a User

Your server is now set up. Access CloudPanel at: https://your-ip-or-URL:8443.

Note: CloudPanel uses a self-signed certificate for SSL; ignore the "Your connection is not private" warning. Create an admin user during the first login by providing the required details.

Step 4: Important Settings

  1. Secure the server with Two-Factor authentication.

    • Go to Account under Admin User.
    • Click Security and enable Two-Factor authentication.
    • Use an authenticator app to scan the QR code and enter the generated six-digit code.
  2. Block unwanted IP addresses.

    • Go to Security under navigation.
    • Add IP addresses to block.

Step 5: Add Users

  • For SSH Users:

    • Go to Users under navigation.
    • Click Add User, provide a username/password, and save.
  • For FTP Users:

    • Go to Users under navigation.
    • Select FTP Users, fill in the details, and click Add User.

Step 6: Add a Domain

  1. Go to Domains under navigation.
  2. Enter your domain name, select Vhost Template & PHP Version, and click Add Domain.

Step 7: Add Databases

  • To add a new database, click the database icon.
  • Click on Add Databases, provide database name, username, password, and save.

Step 8: PhpMyAdmin

  • Access phpMyAdmin under databases to manage your databases.

Step 9: File Manager

  • CloudPanel does not provide a built-in File Manager. Use an FTP or File Manager tool (e.g., FileZilla) to manage your files.

Step 10: Cron Jobs

  • Create scheduled tasks (Cron Jobs) under Cron Jobs in the navigation.

Step 11: Services

  • Check and restart services like SQL, Nginx, PHP, and Redis from the Services section in the navigation.

Admin Area:

Explore the Users, Vhost Templates, Database Servers, Action Log, and Settings sections in the Admin Area for advanced settings and management.

Conclusion:

Congratulations! You have successfully installed CloudPanel on Debian 10. Enjoy the power and flexibility of CloudPanel for hosting your PHP applications.

Cette réponse était-elle pertinente? 12 Utilisateurs l'ont trouvée utile (51 Votes)