Logo

How to Install Plesk on Debian

How to Install Plesk on Debian

This comprehensive guide explains how to install Plesk web hosting control panel on Debian 11 and 12. It covers three installation methods (one-click, custom console, and web interface), system requirements, pre-installation preparations, post-installation configuration including license activation, firewall setup, security best practices, and troubleshooting common issues.

How to Install Plesk on Debian

Plesk is a powerful web hosting control panel that provides a user-friendly interface for managing websites, domains, databases, email accounts, and server settings. This comprehensive guide will show you how to install Plesk Obsidian on Debian.

What is Plesk?

Plesk is a commercial web hosting platform that offers:

  • Intuitive control panel for managing hosting services
  • Multi-domain support for managing multiple websites
  • WordPress Toolkit for easy WordPress management
  • Integrated security features and SSL/TLS support
  • Automated backups and restore functionality
  • Email hosting with spam protection
  • Database management (MySQL, PostgreSQL)
  • DNS management and domain configuration

Supported Debian Versions

  • Debian 11 (Bullseye) - Fully supported
  • Debian 12 (Bookworm) - Supported from Plesk Obsidian 18.0.57+
  • Debian 10 (Buster) - Supported but older

Note: This guide is compatible with Debian 11 and 12.

Prerequisites

Before installing Plesk, ensure you have:

System Requirements

  • Clean server: Plesk should be installed on a fresh OS installation
  • Minimum resources:
    • 2 CPU cores
    • 4 GB RAM (8 GB recommended)
    • 30 GB disk space minimum
    • 64-bit architecture (x64)
  • Root access: SSH access with root privileges
  • Internet connection: Required for downloading installer and updates
  • Clean environment: No existing Apache, MySQL, Cyrus, or PHP installations

User Access

  • Non-root user with sudo privileges (recommended)
  • SSH access to the server

Important Pre-Installation Notes

Clean Server Requirement

Plesk should be installed on a clean server. If you have existing web services:

Remove conflicting software:

sudo apt remove apache2 mysql-server php* -y
sudo apt autoremove -y

Firewall Ports

Plesk requires the following ports to be open:

PortProtocolService
8443TCPPlesk admin panel (HTTPS)
8880TCPPlesk admin panel (HTTP)
80TCPWeb server (HTTP)
443TCPWeb server (HTTPS)
21TCPFTP
22TCPSSH
25TCPSMTP
110TCPPOP3
143TCPIMAP
993TCPIMAPS
995TCPPOP3S

Installation Methods

There are three ways to install Plesk:

  1. One-Click Installation (Recommended for most users) - Fast and automatic
  2. Custom Installation via Console - Interactive with component selection
  3. Web Interface Installation - GUI-based installation

This guide covers all three methods.

This is the fastest method and installs Plesk with default settings.

Step 1: Update System

First, update your Debian system:

sudo apt update && sudo apt upgrade -y

Step 2: Install Required Tools

Install curl or wget (usually pre-installed):

sudo apt install curl wget -y

Step 3: Run One-Click Installer

Execute the following command as root:

sh <(curl https://autoinstall.plesk.com/one-click-installer || wget -O - https://autoinstall.plesk.com/one-click-installer)

Or if you prefer using sudo:

sudo sh -c "$(curl https://autoinstall.plesk.com/one-click-installer || wget -O - https://autoinstall.plesk.com/one-click-installer)"

Step 4: Wait for Installation

The installation will proceed automatically and typically takes 30 minutes to 1 hour.

The installer will:

  • Download the latest stable Plesk release
  • Install default components
  • Apply all available security updates
  • Configure the web server, database, and mail server

Step 5: Note the Access URL

At the end of installation, you'll see output like:

Plesk has been successfully installed!

Access Plesk:
https://your-server-ip:8443
or
https://your-domain.com:8443

Save this URL - you'll need it to access Plesk.

Method 2: Custom Installation via Console

This method allows you to choose which components to install.

Step 1: Update System

sudo apt update && sudo apt upgrade -y

Step 2: Download Plesk Installer

wget https://autoinstall.plesk.com/plesk-installer

Or using curl:

curl -o plesk-installer https://autoinstall.plesk.com/plesk-installer

Step 3: Make Installer Executable

chmod +x plesk-installer

Step 4: Run Installer

sudo ./plesk-installer

Step 5: Follow Interactive Prompts

Accept License Terms:

  • Press F to go forward

Send Installation Data:

  • Press Y (yes) or N (no) to share installation information with Plesk

Select Installation Type:

You'll see options like:

  • Recommended - Standard set of components
  • Full - All available components
  • Custom - Choose specific components

Press F after making your selection.

Install Required Dependencies:

  • The installer will check and install required packages
  • Press F to continue

Step 6: Component Selection (if Custom)

If you chose Custom, you can select:

  • Web server (Apache/Nginx)
  • Database server (MySQL/MariaDB)
  • Mail server
  • DNS server
  • PHP versions
  • Additional tools

Use numbers to select/deselect components, then press F.

Step 7: Wait for Installation

Installation will proceed and show progress in the console.

Method 3: Web Interface Installation

This method uses a graphical interface in your browser.

Step 1: Download Installer

wget https://autoinstall.plesk.com/plesk-installer
chmod +x plesk-installer

Step 2: Start Web Interface

sudo ./plesk-installer --web-interface

Step 3: Access Web Interface

Open your browser and navigate to:

https://your-server-ip:8447

Login credentials:

  • Username: root
  • Password: Your server root password

Step 4: Follow GUI Installation

  1. Select installation type
  2. Choose components (if custom)
  3. Configure settings
  4. Start installation
  5. Monitor progress in browser

Post-Installation Configuration

After installation completes, you need to configure Plesk.

Step 1: Access Plesk

Open your browser and go to:

https://your-server-ip:8443

Note: You may see a security warning about the SSL certificate. This is normal - click "Advanced" and "Proceed" (the certificate is self-signed).

Step 2: Login

First-time login:

  • Username: root
  • Password: Your server's root password

Step 3: Complete Setup Wizard

1. Contact Information

  • Enter your full name
  • Enter your email address
  • Click Continue

2. Set Administrator Password

  • Enter a strong password for the Plesk admin user
  • Confirm the password
  • Important: This is the password you'll use for future logins (username: admin)

3. License Activation

Choose one of the following options:

Option A: Trial License (Free for 15 days)

  • Select "Try Plesk for free"
  • Get full features for 15 days
  • Good for testing

Option B: Enter License Key

  • If you purchased a license, enter the activation key
  • Click "Activate License"

Option C: Purchase License

  • Click "Buy a license" to purchase

4. Accept End User License Agreement

  • Read the terms
  • Check the box to accept
  • Click Enter Plesk

Step 4: Access Plesk Dashboard

You'll now see the Plesk dashboard where you can:

  • Add websites and domains
  • Create email accounts
  • Manage databases
  • Configure security
  • Install applications (WordPress, Joomla, etc.)

Configure Firewall

If you're using UFW firewall on Debian:

Enable Required Ports

# Allow Plesk admin panel
sudo ufw allow 8443/tcp
sudo ufw allow 8880/tcp

# Allow web traffic
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp

# Allow email ports (if using mail server)
sudo ufw allow 25/tcp
sudo ufw allow 110/tcp
sudo ufw allow 143/tcp
sudo ufw allow 465/tcp
sudo ufw allow 587/tcp
sudo ufw allow 993/tcp
sudo ufw allow 995/tcp

# Allow FTP (if needed)
sudo ufw allow 21/tcp

# Reload firewall
sudo ufw reload

Check Firewall Status

sudo ufw status

Verifying Installation

Check Plesk Service Status

sudo systemctl status plesk

Check Plesk Version

plesk version

Test Web Access

Try accessing:

  • Plesk panel: https://your-server-ip:8443
  • Default website: http://your-server-ip

Basic Plesk Configuration

Change Admin Username

For security, use admin instead of root:

  1. Login to Plesk as root
  2. Go to Tools & Settings
  3. Click Server Settings
  4. Use username admin for future logins

Secure Plesk

1. Enable Firewall in Plesk:

  • Go to Tools & Settings > Security > Firewall

2. Configure SSL Certificate:

  • Go to Tools & Settings > SSL/TLS Certificates
  • Install a Let's Encrypt certificate for your domain

3. Enable Security Updates:

  • Plesk automatically applies security updates

Create Your First Domain

  1. Click Add Domain on the dashboard
  2. Enter your domain name
  3. Configure hosting settings
  4. Click OK

Updating Plesk

To update Plesk to the latest version:

sudo plesk installer update

Or use the Plesk interface:

  • Go to Tools & Settings > Updates
  • Click Install Updates

Troubleshooting

Cannot Access Plesk Panel

Check if Plesk is running:

sudo systemctl status plesk
sudo systemctl start plesk

Check firewall:

sudo ufw status

Verify port is listening:

sudo netstat -tlnp | grep 8443

Installation Failed

Check system requirements:

  • Ensure you have enough RAM and disk space
  • Verify Debian version is supported

Check logs:

tail -f /tmp/plesk_installer.log

Clean installation:

sudo plesk installer remove

Then reinstall.

License Issues

If trial expired:

  • Purchase a license from Plesk website
  • Enter license key in Plesk panel

Reactivate license:

sudo plesk bin license --install <LICENSE_KEY>

Service Not Starting

Check all Plesk services:

sudo plesk repair installation

Uninstalling Plesk

If you need to remove Plesk:

wget https://autoinstall.plesk.com/plesk-installer
chmod +x plesk-installer
sudo ./plesk-installer --remove

Warning: This will remove all Plesk data, including websites and databases. Make backups first!

Important Security Tips

  1. Use strong passwords for admin account
  2. Enable firewall and restrict access to port 8443
  3. Keep Plesk updated with latest security patches
  4. Use Let's Encrypt for SSL certificates
  5. Enable fail2ban for brute force protection
  6. Regular backups of all data
  7. Disable root login - use admin account instead

Additional Resources

Summary

To install Plesk on Debian:

Quick method:

sudo apt update && sudo apt upgrade -y
sudo sh -c "$(curl https://autoinstall.plesk.com/one-click-installer || wget -O - https://autoinstall.plesk.com/one-click-installer)"

Access Plesk:

https://your-server-ip:8443

First login:

  • Username: root
  • Password: Your server root password

Next logins:

  • Username: admin
  • Password: Password you set during setup

Plesk is now ready to manage your websites and hosting services!

Join our Discord community server

For any questions, suggestions, or just to chat with the community, join us on Discord!

900+Members