Edit this page on GitHub

What is KPanel?

Last updated · October 2025  ·  v2.4

KPanel is a modern, lightweight web hosting control panel designed as a drop-in replacement for cPanel/WHM. Built from the ground up for performance and simplicity, it provides everything a web host, developer, or reseller needs to manage websites, email, databases, DNS, and server resources — all from a clean, intuitive interface.

Unlike legacy panels that were built in the early 2000s and retrofitted over decades, KPanel was architected for modern Linux stacks. It runs on Ubuntu 22.04 and 24.04 LTS, uses OpenLiteSpeed or Nginx as its web server, and integrates natively with Let's Encrypt, WHMCS, and popular one-click app installers.

KPanel targets three primary audiences: individual developers who want a self-hosted alternative to managed WordPress hosting, small hosting businesses that need reseller functionality without cPanel's licensing costs, and enterprises that require multi-server WHM-style administration with full API access.

Key Differences from cPanel

FeatureKPanelcPanel
Monthly licence — unlimited accounts$5/month$45–$200/month
Web serverOpenLiteSpeed / NginxApache only
OS supportUbuntu 22.04, 24.04AlmaLinux, RHEL
WHMCS integration Native module Native module
Let's Encrypt SSLAuto-renew includedPaid add-on
API accessFull REST APIJSON/XML API
Container isolationKernel namespacesCloudLinux (extra cost)

KPanel offers a 30-day free trial with full access. After that, a paid licence is required. All licences cover one server with unlimited hosting accounts.

Next up
Server Requirements
Getting Started

Server Requirements

Hardware & software prerequisites before installation

Before installing KPanel, ensure your server meets the minimum specifications below. A fresh, clean OS install is strongly recommended — do not install KPanel on a server already running Apache, Nginx, or another control panel.

Operating System

KPanel officially supports Ubuntu 22.04 LTS (Jammy) and Ubuntu 24.04 LTS (Noble). Both 64-bit (x86_64) and ARM64 architectures are supported. Debian 12 support is in beta.

CentOS, AlmaLinux, and Rocky Linux are not supported. KPanel is Ubuntu-first by design. Windows Server is not supported.

Hardware Minimums

ComponentMinimumRecommendedProduction
CPU1 vCPU2 vCPU4+ vCPU
RAM1 GB2 GB4 GB+
Disk20 GB SSD40 GB SSD100 GB+ NVMe
Bandwidth100 Mbps1 Gbps1 Gbps+
IPv41 dedicated IP1 dedicated IPMultiple IPs

Network Requirements

  • A dedicated public IPv4 address (shared IPs not supported for the panel itself)
  • Reverse DNS (rDNS/PTR) set for the server's primary IP — required for email delivery
  • Ports 80, 443, 2083 (KPanel UI), 2087 (WHM), 21 (FTP), 22 (SSH) open in your provider's firewall
  • A valid hostname (FQDN) such as server1.yourdomain.com resolving to the server's IP

Software Pre-checks

The installer will handle all software dependencies automatically, but the following must be true before you run it:

  1. Root or sudo access is available
  2. The system hostname is set correctly: hostnamectl set-hostname server1.yourdomain.com
  3. No web server (Apache/Nginx) is already installed
  4. curl and wget are available: apt install -y curl wget
  5. System packages are up to date: apt update && apt upgrade -y

Tip: Use a cloud provider snapshot before installing. If anything goes wrong, you can roll back in seconds. Providers like Hetzner, DigitalOcean, and Vultr all support this natively.

Next up
Installation Guide
Getting Started

Installation

Get KPanel running on your server in under 10 minutes

KPanel ships as a single-command installer script that configures the web server, database engine, mail server, DNS daemon, PHP, and the panel interface automatically. The full installation typically takes 5–12 minutes depending on server speed and internet connection.

Run the installer as root or with sudo on a fresh Ubuntu 22.04/24.04 server only. The script will overwrite system configurations.

Step 1 — Prepare the Server

bash · Ubuntu 22.04 / 24.04
# Update system packages
apt update && apt upgrade -y

# Install prerequisites
apt install -y curl wget git unzip

# Set your server hostname (replace with your actual FQDN)
hostnamectl set-hostname server1.yourdomain.com

Step 2 — Run the KPanel Installer

bash · One-line installer
bash <(curl -sSL https://get.kpanel.uk/install.sh)

The installer will prompt you for a few options:

  • Web server: OpenLiteSpeed (recommended) or Nginx
  • Database: MariaDB 10.11 (default) or MySQL 8.0
  • Admin email: Used for Let's Encrypt notifications
  • Licence key: Leave blank during your 30-day free trial — enter it after purchase

Step 3 — Verify the Installation

bash · Check service status
# Check KPanel service
systemctl status kpanel

# Verify web server is running
systemctl status lsws   # or: systemctl status nginx

# Check MariaDB
systemctl status mariadb

If all three services show active (running), the installation was successful. The installer will print your panel URL and default credentials at the end of the install log.

Step 4 — Save Your Credentials

At the end of installation, credentials are displayed once and saved to /root/.kpanel_credentials. Read them with:

bash
cat /root/.kpanel_credentials

Change the default admin password immediately after first login. The credentials file is readable by root only, but you should delete it once you have saved the details securely.

Next up
First Login & Setup Wizard
Getting Started

First Login

Accessing the panel and completing the setup wizard

Once installation is complete, KPanel is accessible via your server's IP address or hostname on port 2083. For the admin WHM panel, use port 2087.

Panel URLs

InterfaceURLDefault User
User Panel (KPanel)https://your-server-ip:2083admin
WHM Admin Panelhttps://your-server-ip:2087root
Webmail (Roundcube)https://your-server-ip/webmailemail address
phpMyAdminhttps://your-server-ip/phpmyadminSSO from panel

Your browser will show an SSL warning on first access because the panel uses a self-signed certificate initially. Click Advanced → Proceed. A Let's Encrypt certificate will be issued automatically once DNS propagates.

Setup Wizard

On first login, the KPanel Setup Wizard launches automatically. It walks you through five configuration steps:

  1. Change Admin Password

    Enter a strong password for the admin account. Minimum 12 characters, mix of letters, numbers, and symbols.

  2. Set Server Hostname & IP

    Confirm the server's fully-qualified domain name and primary IP. KPanel uses this for SSL certificate generation and reverse-DNS validation.

  3. Configure Name Servers

    Enter your nameserver hostnames (e.g. ns1.yourdomain.com, ns2.yourdomain.com). These will be pre-filled in DNS zone templates for new accounts.

  4. Enter Licence Key

    Paste your KPanel licence key. During your 30-day free trial you can click Skip. You can add a licence key later under WHM → Licence Manager.

  5. Create First Hosting Account

    Optionally create your first cPanel-style user account with a domain, username, password, and package assignment.

You can re-run the setup wizard at any time from WHM → Server Setup → Re-run Wizard.

Next up
Dashboard Overview
Getting Started

Quick Start Guide

From fresh install to live website in under 15 minutes

This guide assumes you have completed installation and first login. We will take you from a blank server to a live WordPress website step by step.

  1. Point your domain's DNS to your server

    Log into your domain registrar and create an A record pointing yourdomain.com and www.yourdomain.com to your server IP. DNS propagation can take 5–60 minutes.

  2. Add a hosting account

    In KPanel WHM, go to Accounts → Create Account. Enter the domain, username, email, and choose a hosting package. Click Create.

  3. Log into the user panel

    Navigate to https://your-server:2083 and log in with the credentials you set for the new account.

  4. Issue an SSL certificate

    In the user panel, go to SSL/TLS → Auto SSL. Click Issue Certificate. KPanel will contact Let's Encrypt and install the certificate automatically.

  5. Install WordPress

    Go to App Installer → WordPress. Select your domain, choose an admin username/password, and click Install. WordPress will be live in under 60 seconds.

KPanel's App Installer supports WordPress, Joomla, Drupal, PrestaShop, Magento, and 40+ other applications — all with one-click installation and automatic updates.

Next up
Dashboard Overview
Getting Started

Dashboard Overview

Understanding the KPanel user interface

The KPanel dashboard is the landing page every user sees after login. It provides an at-a-glance summary of the account's resource usage and quick-access shortcuts to the most common tools.

Resource Usage Cards

The top row of the dashboard displays real-time usage cards for:

  • Disk Usage — Total disk consumed vs. your package allowance, shown as a progress bar
  • Bandwidth — Monthly inbound + outbound traffic vs. allocation
  • Email Accounts — Number of active mailboxes vs. package limit
  • Databases — MySQL/MariaDB databases in use
  • Subdomains — Active subdomain count
  • FTP Accounts — Active FTP users

Navigation

The left sidebar contains all panel features grouped into logical sections: Files, Databases, Email, Domains, Security, Software, and Advanced. Clicking any group expands it to reveal its tools. You can pin frequently used tools to a Favourites bar at the top of the sidebar by clicking the ★ star icon next to any tool name.

Server Metrics (Admin View)

WHM administrators see an additional server health panel at the top of their dashboard showing CPU load, RAM usage, active connections, and disk I/O. Clicking any metric opens a detailed 24-hour graph powered by KPanel's built-in Prometheus-compatible metrics collector.

The dashboard auto-refreshes resource usage every 60 seconds. You can force an immediate refresh by pressing R anywhere on the page.

Next up
File Manager
Panel Features

File Manager

Upload, edit, organise, and manage your website files

The KPanel File Manager is a full-featured browser-based file manager that lets you manage your website files without needing an FTP client. It supports drag-and-drop uploads, inline code editing, archive extraction, and Unix permission management — all without leaving the browser.

Uploading Files

  1. Navigate to your document root

    Open File Manager and navigate to public_html/ (or the subdomain's directory if applicable).

  2. Drag & Drop or Use Upload Button

    Drag files from your desktop directly into the file panel, or click Upload in the toolbar and select files. Multiple files and folders are supported simultaneously.

  3. Monitor Upload Progress

    A progress tray appears at the bottom of the screen showing the real-time upload progress of each file. Uploads are chunked, so large files (up to 2 GB) are supported.

Editing Files

Right-click any file and select Edit to open KPanel's built-in code editor. It features syntax highlighting for PHP, HTML, CSS, JS, Python, and more, powered by CodeMirror. Changes are saved with Ctrl+S and applied immediately.

Extracting Archives

Right-click any .zip, .tar.gz, or .tar.bz2 archive and choose Extract. A dialog lets you choose the destination directory. For ZIP files, you can also preview the contents before extracting.

File Permissions (chmod)

Right-click any file or folder and select Permissions to open the chmod editor. Check boxes for owner/group/world read, write, and execute permissions, or type the numeric value (e.g. 755) directly. Bulk permission changes can be applied recursively to entire directories.

Never set file permissions to 777 on a production server. Use 644 for files and 755 for directories. Writable directories should be 775 with the correct group ownership.

Next up
Databases & phpMyAdmin
Panel Features

Databases & phpMyAdmin

Create and manage MySQL/MariaDB databases

KPanel uses MariaDB (or MySQL, if selected during install) for all database operations. Each hosting account gets its own isolated database user prefix, ensuring no two accounts can access each other's databases. phpMyAdmin is integrated and accessible with a single SSO click — no separate login required.

Creating a Database

  1. Go to Databases → MySQL Databases

    From the sidebar, expand Databases and click MySQL Databases.

  2. Enter a database name

    Your account username is automatically prepended (e.g. myuser_). Type the suffix, such as wordpress, to create myuser_wordpress.

  3. Create a database user

    Scroll to MySQL Users and create a new user with a strong password. Use the password generator for a cryptographically random password.

  4. Assign the user to the database

    In the Add User to Database section, select the user and database, then click Add. Choose privilege level: All Privileges is typical for web applications.

Accessing phpMyAdmin

Click the phpMyAdmin button in the Databases section. KPanel automatically logs you in via SSO — you will land directly inside phpMyAdmin with access to all databases belonging to your account. No separate password is required.

PHP · Sample database connection
<?php
$host     = 'localhost';
$dbname   = 'myuser_wordpress';
$username = 'myuser_dbuser';
$password = 'your-secure-password';

$pdo = new PDO(
    "mysql:host={$host};dbname={$dbname};charset=utf8mb4",
    $username,
    $password
);

Always connect to MySQL via localhost or 127.0.0.1, not the public server IP. Remote MySQL connections are disabled by default for security.

Next up
Email Accounts
Panel Features

Email Accounts

Create professional email addresses for your domain

KPanel includes a full-featured mail stack powered by Postfix (MTA) and Dovecot (IMAP/POP3). Each hosting account can have multiple email addresses, forwarders, autoresponders, and spam filters. Webmail is available via Roundcube, accessible from any browser.

Creating an Email Account

  1. Navigate to Email → Email Accounts

    From the sidebar, expand Email and click Email Accounts.

  2. Fill in the account details

    Enter the local part (e.g. hello) — the full address will be hello@yourdomain.com. Set a strong password and a storage quota (or leave blank for unlimited).

  3. Click Create

    The account is active immediately. Test it by logging in to webmail.

Webmail Access

Your webmail URL is https://webmail.yourdomain.com or https://your-server-ip/webmail. Log in with the full email address and password. KPanel uses Roundcube as the webmail client with a modern, mobile-friendly interface.

Mail Client Settings (IMAP/SMTP)

SettingIncoming (IMAP)Outgoing (SMTP)
Servermail.yourdomain.commail.yourdomain.com
Port993 (SSL)465 (SSL) or 587 (STARTTLS)
EncryptionSSL/TLSSSL/TLS
UsernameFull email addressFull email address
AuthenticationPasswordPassword

Setting a Quota

Edit an existing account and set the Mailbox Quota in megabytes. Setting it to 0 means unlimited (capped by account disk quota). Users approaching their quota receive an automated warning email at 80% and 95% usage.

Set up SPF, DKIM, and DMARC records to maximise email deliverability. KPanel auto-generates these DNS records when you create a new email account — check Email → Email Deliverability to publish them.

Next up
Domains & Subdomains
Panel Features

Domains & Subdomains

Add addon domains, subdomains, and manage document roots

A KPanel account's primary domain is set at account creation. You can add additional domains (addon domains) and any number of subdomains. Each domain or subdomain can point to a different directory on the server, allowing multiple independent websites to be hosted under a single account.

Adding an Addon Domain

  1. Go to Domains → Addon Domains

    Click Add Addon Domain. Enter the full domain name (e.g. newsite.com).

  2. Set the document root

    KPanel auto-suggests a directory like public_html/newsite.com. You can change this to any path within your account's home directory.

  3. Create FTP user (optional)

    Tick the box to create a dedicated FTP user scoped to this domain's directory. Useful for handing off a site to a client or developer.

  4. Click Add Domain

    KPanel creates the directory, sets up the web server virtual host, and optionally issues an SSL certificate.

Adding a Subdomain

Go to Domains → Subdomains and click Create Subdomain. Enter the subdomain prefix (e.g. blog) and select the parent domain. KPanel creates blog.yourdomain.com and points it to public_html/blog by default. The document root is fully customisable.

Managing Document Roots

You can change a domain's document root at any time by editing it in the Addon Domains list and updating the directory path. The web server configuration is reloaded automatically — no downtime is required.

For addon domains to resolve correctly, their DNS A records must point to your server's IP. If your server is the DNS authority for the domain, KPanel creates the zone automatically.

Next up
SSL / TLS Certificates
Panel Features

SSL / TLS Certificates

Secure your domains with free Let's Encrypt or custom certificates

KPanel integrates natively with Let's Encrypt via the ACME protocol to issue and auto-renew free SSL/TLS certificates for all domains and subdomains. Certificates are renewed automatically 30 days before expiry — no manual intervention required.

Issuing an Auto SSL Certificate

  1. Go to SSL/TLS → Auto SSL

    The Auto SSL page lists all domains associated with your account and their current certificate status.

  2. Click "Issue Certificate"

    Select the domain(s) you want to secure. KPanel contacts Let's Encrypt, completes the HTTP-01 challenge automatically, and installs the certificate.

  3. Verify installation

    The domain's status changes to Secured with the certificate expiry date shown.

Installing a Custom Certificate

If you have a commercially purchased certificate (e.g. from DigiCert or Sectigo), go to SSL/TLS → Install & Manage SSL and paste in your:

  • Certificate (CRT) — the primary certificate for your domain
  • Private Key (KEY) — generated when you created your CSR
  • Certificate Authority Bundle (CABUNDLE) — the intermediate chain

Certificate Renewal

Auto SSL certificates are checked for expiry daily by a background cron job. If a certificate is within 30 days of expiry, KPanel renews it automatically. You will receive an email notification if renewal fails (e.g. due to DNS misconfiguration or port 80 being blocked).

bash · Force manual renewal
# Force renewal for a specific domain
kpanel-ssl renew yourdomain.com --force

# Renew all certificates due within 30 days
kpanel-ssl renew-all

Enable HTTPS Redirect in SSL/TLS settings to automatically redirect all HTTP traffic to HTTPS. This sends a 301 redirect and is recommended for all production sites.

Next up
WHMCS Module
Panel Features

DNS Zone Editor

Manage DNS records for domains hosted on your server

KPanel includes a full DNS zone editor powered by BIND 9. You can add, edit, and delete A, AAAA, CNAME, MX, TXT, SRV, and CAA records for any domain on your server. Changes are applied within seconds and propagate globally based on each record's TTL.

Common Record Types

TypePurposeExample Value
AMap hostname to IPv4203.0.113.1
AAAAMap hostname to IPv62001:db8::1
CNAMEAlias to another hostnameyourdomain.com.
MXMail server10 mail.yourdomain.com.
TXTSPF, DKIM, DMARC, verification"v=spf1 ip4:203.0.113.1 ~all"
SRVService location10 5 443 sipserver.yourdomain.com.

Set a low TTL (e.g. 300 seconds) before making DNS changes if you need faster propagation. After changes are confirmed, increase TTL back to 3600 or higher for better caching.

Next up
FTP Accounts
Panel Features

FTP Accounts

Upload files via FTP / FTPS using your preferred client

KPanel uses Pure-FTPd with TLS encryption (FTPS). You can create multiple FTP users, each scoped to a specific directory. We recommend using SFTP over SSH where possible, as it is more secure and available without any additional configuration.

Creating an FTP Account

  1. Go to Files → FTP Accounts

    Click Create FTP Account.

  2. Enter username and password

    The username is prefixed with your account username automatically (e.g. myuser_ftpuser).

  3. Set the directory

    Enter the path relative to your home directory (e.g. public_html/newsite.com). The FTP user will be chroot-jailed to this directory.

  4. Connect with FileZilla

    Host: your-server-ip, Port: 21, Protocol: FTP with Explicit TLS, Username and Password as set above.

For maximum security, use SFTP (SSH File Transfer Protocol) instead of FTP. Connect on port 22 with your SSH credentials. No separate configuration is needed in KPanel.

Next up
Backups & Restore
Panel Features

Backups & Restore

Automated and on-demand backups for your account data

KPanel supports both full account backups (files + databases + emails + DNS + config) and partial backups (files only or databases only). Backups can be stored locally, on a remote SFTP server, or pushed to S3-compatible object storage.

Scheduling Automated Backups

In WHM → Backup Configuration, admins can configure daily, weekly, and monthly backup schedules. Individual accounts can trigger on-demand backups from Files → Backup. Each backup is compressed as a .tar.gz archive and named with a timestamp.

Restoring from Backup

  1. Go to Files → Backup → Restore

    Select the backup archive from the list or upload a .tar.gz file from your local machine.

  2. Choose restore scope

    Select whether to restore files, databases, emails, or all three. You can also restore a single file or database by browsing inside the archive.

  3. Confirm and restore

    KPanel will overwrite existing data with the backup contents. A confirmation dialog warns you before proceeding.

Restoring overwrites current data. Always verify you have selected the correct backup and understand which files will be replaced before confirming.

Next up
PHP Version Manager
Panel Features

PHP Version Manager

Switch PHP versions per domain without server restarts

KPanel supports multiple PHP versions installed simultaneously using PHP-FPM. Each domain or subdomain can run a different PHP version — for example, you can run PHP 8.3 for a new Laravel app while keeping PHP 7.4 for a legacy WordPress site on the same server.

Switching PHP Versions

Go to Software → PHP Version Manager. Select a domain from the dropdown and choose the desired PHP version. Click Apply. The change takes effect immediately — no web server restart needed.

Managing PHP.ini Settings

Click the PHP Options button next to any domain to edit common php.ini values per domain: memory_limit, upload_max_filesize, post_max_size, max_execution_time, and error_reporting.

PHP VersionStatusRecommended For
PHP 8.3Latest StableLaravel 11, WordPress 6.5+, new projects
PHP 8.2StableMost modern frameworks
PHP 8.1Security fixesOlder Laravel, Symfony projects
PHP 7.4LegacyLegacy applications only
Next up
Cron Jobs
Panel Features

Cron Jobs

Schedule recurring tasks with KPanel's cron manager

Cron jobs allow you to automate repetitive tasks — sending emails, generating reports, running WordPress's wp-cron, clearing caches, and more. KPanel provides a graphical cron editor so you don't need to remember cron syntax.

Adding a Cron Job

  1. Go to Advanced → Cron Jobs

    Click Add Cron Job.

  2. Choose a frequency

    Select a preset (Every 5 Minutes, Hourly, Daily, Weekly, Monthly) or enter a custom cron expression in the five-field input.

  3. Enter the command

    Use the full path to the PHP binary, e.g. /usr/bin/php /home/myuser/public_html/artisan schedule:run.

cron · WordPress WP-Cron replacement
# Run every 5 minutes - replace wp-cron.php URL approach
*/5 * * * *  /usr/bin/php /home/myuser/public_html/wp-cron.php > /dev/null 2>&1
Next up
App Installer
Panel Features

App Installer

One-click install for WordPress, Joomla, Drupal and 40+ apps

The KPanel App Installer (powered by Softaculous) lets you deploy popular web applications with a single click. Every installation is pre-configured with secure defaults, random database credentials, and an optional auto-update schedule.

Installing WordPress

  1. Go to Software → App Installer

    Click the WordPress tile or search for it.

  2. Configure the install

    Select the domain, set an install directory (leave blank to install at the root), enter your site name, admin username, password, and email.

  3. Click Install

    The installer downloads WordPress, creates the database, configures wp-config.php, and sets up the admin account. Your site is live in under 60 seconds.

  4. Enable auto-updates (recommended)

    Tick the Enable Automatic Updates box to keep WordPress core, themes, and plugins updated automatically.

Softaculous creates a backup of any existing installation before updating, so you can roll back if something breaks after an auto-update.

Next up
WHMCS Integration
Panel Features

Admin WHM Panel

Server-wide administration for hosting providers

The KPanel WHM (Web Host Manager) is the server-level admin interface available at port 2087. It is accessible only to the root user or accounts granted WHM access by the root administrator. WHM handles server configuration, reseller management, account creation, and billing integration.

Key WHM Functions

  • Account Manager — Create, suspend, terminate, and modify hosting accounts
  • Package Manager — Define hosting packages with resource limits
  • Server Configuration — Apache/Nginx/OpenLiteSpeed settings, PHP compiler, MySQL tuner
  • Reseller Manager — Create and manage reseller accounts with their own WHM access
  • Security Centre — ModSecurity rules, CSF firewall, SSH configuration
  • DNS Cluster — Synchronise zones across multiple DNS servers
  • Backup Configuration — Server-wide automated backup scheduling
  • Metrics & Logs — CPU, RAM, disk I/O, bandwidth, error logs
Next up
Reseller System
Reseller & Admin

Reseller System

Sell hosting under your brand with full WHM sub-access

KPanel's reseller system lets you wholesale server resources to customers who sell hosting under their own brand. Resellers get a scoped WHM interface where they can create and manage accounts up to their allocated resource limits — without access to the root server configuration.

Creating a Reseller

  1. Create a hosting account first

    All resellers start as regular hosting accounts. Create the account via WHM → Create Account.

  2. Grant reseller privileges

    Go to WHM → Reseller Manager → Grant Reseller Status. Select the account and assign a reseller package.

  3. Set resource limits

    Define how many accounts, how much disk, and how much bandwidth this reseller can allocate to their customers. These limits are enforced in real time.

  4. Configure brand / nameservers

    Resellers can set their own nameservers (e.g. ns1.theirbrand.com) that KPanel will pre-fill when creating accounts under them.

Next up
Creating Packages
Reseller & Admin

Creating Packages

Define hosting tiers with resource quotas

Packages (also called plans) define the resource limits assigned to a hosting account: disk space, bandwidth, email accounts, databases, subdomains, FTP users, and more. You can create as many packages as you need and assign them to accounts at creation time or switch accounts between packages at any time.

Package Settings

SettingDescriptionExample
Disk QuotaTotal disk space (MB). 0 = unlimited10240 (10 GB)
BandwidthMonthly bandwidth (MB). 0 = unlimited102400 (100 GB)
Max Email AccountsNumber of mailboxes. 0 = unlimited25
Max DatabasesMySQL/MariaDB databases. 0 = unlimited10
Max SubdomainsSubdomains per account20
Max Addon DomainsAdditional hosted domains5
PHP Versions AllowedWhich PHP versions are available8.1, 8.2, 8.3
Next up
Managing Accounts
Reseller & Admin

Managing Accounts

Suspend, terminate, and modify hosting accounts

WHM provides a full account lifecycle manager. You can view all accounts, log into any account as that user (for support purposes), change package assignments, reset passwords, and view usage statistics — all without knowing the user's password.

Common Account Actions

  • Login as User — Click the key icon to log into any user's KPanel without their password. Useful for support and debugging.
  • Suspend Account — Suspends web, email, and FTP access. The account's files and databases remain intact.
  • Unsuspend Account — Restores full access immediately.
  • Terminate Account — Permanently deletes the account, all files, databases, and email. This is irreversible.
  • Change Package — Move an account to a different package to upgrade or downgrade resource limits.
  • Usage Report — View disk, bandwidth, email, and database usage in a detailed breakdown.

Account termination is permanent. Always take a full backup before terminating an account, even if the customer has requested it. You may need it later for disputes or data recovery requests.

Next up
WHMCS Module
Reseller & Admin

WHMCS Integration — Installing the Module

Automate account provisioning with WHMCS billing

The KPanel WHMCS Module connects your WHMCS billing panel to your KPanel server, enabling fully automatic account provisioning, suspension, unsuspension, termination, and package changes — triggered by WHMCS when customers pay, cancel, or upgrade.

Step 1 — Download the Module

Download the latest module from the KPanel client area or directly via the API:

bash · Download & extract
# Download module archive
wget https://releases.kpanel.uk/whmcs/kpanel-whmcs-latest.zip

# Extract into WHMCS modules directory
unzip kpanel-whmcs-latest.zip -d /path/to/whmcs/modules/servers/

# Set permissions
chown -R www-data:www-data /path/to/whmcs/modules/servers/kpanel/

Step 2 — Generate an API Key in KPanel

  1. Log into KPanel WHM

    Go to WHM → API Manager → Create API Key.

  2. Name the key

    Use something descriptive like WHMCS Integration. Set the scope to Full Access or a minimum of: accounts.create, accounts.suspend, accounts.terminate, accounts.changepackage.

  3. Copy the API key

    The key is shown once. Store it securely in a password manager before closing the dialog.

Step 3 — Add the Server in WHMCS

  1. Go to WHMCS → Setup → Products → Servers

    Click Add New Server.

  2. Fill in server details

    Name: Any label (e.g. KPanel Server 1)
    Hostname: Your KPanel server's FQDN
    IP Address: Server's primary IPv4
    Type: Select KPanel from the dropdown
    Access Hash: Paste the API key from step 2

  3. Click Test Connection

    WHMCS will connect to KPanel's API and confirm the integration is working. You should see a green success message.

Step 4 — Configure a Product

Create or edit a WHMCS product. On the Module Settings tab, select the KPanel module, choose your server, and map the product to a KPanel package name (must match exactly as defined in WHM → Packages).

Package names are case-sensitive. If your WHM package is named Basic Hosting, enter exactly Basic Hosting in the WHMCS product module settings.

Next up
Connecting to KPanel
WHMCS Integration

Connecting to KPanel

API authentication and connection troubleshooting

WHMCS communicates with KPanel via its REST API over HTTPS on port 2087. All requests are authenticated using the API key you generated. Make sure port 2087 is open between your WHMCS server and KPanel server.

API Endpoint

HTTP · Base URL
https://your-kpanel-server:2087/api/v1/

Testing the Connection Manually

bash · curl test
curl -H "Authorization: Bearer YOUR_API_KEY" \
     -H "Accept: application/json" \
     https://your-server:2087/api/v1/ping

# Expected response:
{"status":"ok","version":"2.4.1","hostname":"server1.yourdomain.com"}
Next up
Provisioning Setup
WHMCS Integration

Provisioning Setup

Automate account creation when customers pay

Once the server and product are configured, WHMCS will automatically provision (create) KPanel hosting accounts when a customer checks out and pays. The module handles the entire flow: creating the account, setting the package, sending welcome email with login details, and updating the WHMCS service record.

Provisioning Workflow

  1. Customer places order and pays

    WHMCS marks the order as paid and triggers the Create Account hook.

  2. WHMCS sends provisioning request to KPanel API

    The module POST's to /api/v1/accounts/create with the domain, username, password, and package name.

  3. KPanel creates the account

    The account is created instantly. KPanel returns a 200 OK with the account details.

  4. WHMCS sends welcome email

    The customer receives an email with their panel login URL, username, and temporary password.

Customise the WHMCS welcome email template to include your KPanel server's URL and branding. Go to WHMCS → Setup → Email Templates → Hosting Account Welcome Email.

Next up
SSO Login
WHMCS Integration

SSO Login

One-click login from WHMCS to KPanel

KPanel supports Single Sign-On (SSO) — customers can log into their KPanel directly from the WHMCS client area with one click, without entering a username or password. SSO uses signed, time-limited tokens (valid for 90 seconds) to ensure security.

How It Works

  1. Customer clicks "Login to Panel" in WHMCS

    WHMCS calls the KPanel module's LoginLink function.

  2. WHMCS requests a one-time token from KPanel API

    A POST to /api/v1/sso/token with the account username returns a signed JWT token valid for 90 seconds.

  3. Customer is redirected to KPanel with the token

    The browser is redirected to https://server:2083/auth/sso?token=JWT. KPanel validates the token and logs the user in.

SSO tokens are single-use and expire after 90 seconds. If the redirect fails or the customer is slow to click, they can simply click the button again to get a fresh token.

Next up
User Isolation
Security

Container & User Isolation

How KPanel keeps every client strictly isolated inside their own sandbox

If you've managed shared hosting before, you know the nightmare: one client installs an abandoned, vulnerable WordPress plugin, an attacker gets in, traverses the server's /home directory, steals everyone else's database passwords, and sends spam until your IP gets blacklisted.

KPanel solves this from the ground up using true Container and User Isolation. Instead of trusting basic file permissions or shared web-server pools, KPanel locks down every single hosting user with multiple defense-in-depth layers.

The Golden Rule of KPanel Security:

Even if an attacker gains arbitrary PHP code execution on client A's website, they are physically trapped inside client A's sandbox. They cannot see client B, cannot read other users' files, and cannot execute host-level system commands.

How the 5 Layers of Isolation Work

1. Dedicated Container Slices

Every user runs inside a kernel-enforced systemd cgroup slice. If a site experiences traffic spikes or infinite loops, it only throttles its own assigned CPU and RAM quotas — never crashing your server or hurting neighbouring clients.

2. Strict POSIX User Boundaries

Every user has a unique system UID (5000+), assigned home directory /home/{user} with 0710 permissions, and an interactive login shell disabled by default (/usr/sbin/nologin). Directory listing of /home is completely blocked.

3. Per-User OpenLiteSpeed LSAPI

No shared-identity PHP handlers allowed. Each account's PHP worker runs under that account's own user identity and communicates over a private root-owned UNIX socket. There is zero shared memory or cross-user process sniffing.

4. Zero Shell Commands in Web Layer

The web application process (kpanel:kpanel) cannot execute shell commands (exec, system, passthru are strictly disabled). High-privilege tasks must pass over a dedicated UNIX socket (/run/kpanel/worker.sock) using strictly typed schemas.

5. Canonical Path Enforcement

Every filesystem operation verifies realpath() containment within the user's base directory before reading or writing. Symlink poisoning, relative path traversal (../../etc/shadow), and zip-slip vulnerabilities are blocked at the kernel/API level.

Verifying Your Server's Isolation Status

KPanel includes a built-in automated verification test suite. You can run it on your server anytime as root to confirm that all 35+ security invariants and user isolation barriers are active and passing:

bash — Test Isolation on Host
# Run complete user isolation and container verification
php artisan kpanel:verify-isolation

When run, the verification utility tests:

  • Service status: Root worker daemon socket permissions (0660 root:kpanel)
  • Web server: OpenLiteSpeed per-user LSPHP sockets, no shared-identity fallback handler
  • Filesystem permissions: User home directories (0710), document roots, canonical boundaries
  • Access denial checks: Confirms users cannot read /etc/shadow or traverse /root
  • Canary profile: Confirms native systemd isolation and memory cgroup boundaries are actively running
Need assistance or have specific security compliance questions?

Our security and support team is available at support@kpanel.uk. We are happy to walk you through our threat model or assist with hardening checklist configurations.

Next up
ModSecurity WAF
Security

ModSecurity WAF

Web Application Firewall powered by OWASP Core Rule Set

KPanel ships with ModSecurity 3 (ModSec) integrated into OpenLiteSpeed or Nginx. The OWASP Core Rule Set (CRS) is pre-installed and enabled by default in Detection Only mode. You can switch to blocking mode once you have confirmed no false positives for your applications.

Switching to Blocking Mode

bash · Enable blocking mode
# Edit the main ModSecurity config
nano /etc/modsecurity/modsecurity.conf

# Change detection mode to blocking
SecRuleEngine On  # was: DetectionOnly

# Reload web server
systemctl reload lsws

Whitelisting Rules

If a WAF rule blocks a legitimate request (false positive), whitelist it using the rule ID in /etc/modsecurity/custom-rules.conf:

ModSecurity · Disable a specific rule
# Disable rule 941100 for a specific domain
<VirtualHost yourdomain.com>
    SecRuleRemoveById 941100
</VirtualHost>
Next up
SSH & SFTP Access
Security

SSH & SFTP Access

Secure shell and file transfer protocol configuration

SSH access can be granted per hosting account from WHM. By default, new accounts have SSH disabled (SFTP only). Enabling full SSH gives the user access to a restricted shell — they can run PHP, Node.js, and other CLI tools but cannot execute system-level commands.

Enabling SSH for an Account

In WHM → Account Manager, click the account name, then go to SSH Access. Select the shell type: Restricted Shell (jailshell) or Full Shell (/bin/bash). Restricted shell is recommended for shared hosting customers.

Connecting via SSH

bash · SSH connection example
ssh myuser@your-server-ip -p 22

Using SSH Keys (Recommended)

bash · Generate & upload SSH key
# Generate a key pair (on your local machine)
ssh-keygen -t ed25519 -C "your@email.com"

# Upload public key to your KPanel account
ssh-copy-id -i ~/.ssh/id_ed25519.pub myuser@your-server-ip

Once SSH keys are configured, disable password authentication in /etc/ssh/sshd_config by setting PasswordAuthentication no. This eliminates the brute-force attack surface entirely.

Next up
Firewall Rules
Security

Firewall Rules

CSF/iptables configuration via KPanel's firewall manager

KPanel integrates with ConfigServer Security & Firewall (CSF), a stateful packet inspection firewall for Linux. CSF can block brute-force attacks (via LFD — Login Failure Daemon), manage port access, and maintain IP allow/block lists — all from the KPanel WHM interface.

Default Open Ports

PortProtocolService
22TCPSSH
21, 20TCPFTP
80, 443TCPHTTP / HTTPS
110, 995TCPPOP3 / POP3S
143, 993TCPIMAP / IMAPS
465, 587TCPSMTP Submission
2083, 2087TCPKPanel / WHM
2096TCPWebmail

Manage firewall rules from WHM → Security → Firewall Manager. Block a specific IP with one click, or use Advanced Rules to write custom iptables rules for complex scenarios.

Next up
Common Issues
Security

Common Issues

Fixes for the most frequently reported problems

Below are the most common issues reported by KPanel users and how to resolve them quickly.

Panel Not Loading on Port 2083

If https://your-server:2083 times out, check that the KPanel service is running and port 2083 is open in your server's firewall (both CSF and your cloud provider's security group):

bash
systemctl status kpanel
ss -tlnp | grep 2083   # Should show LISTEN
csf -a YOUR_IP        # Allow your IP in CSF

SSL Certificate Not Issuing

  • Ensure the domain's DNS A record points to your server and has propagated
  • Ensure port 80 is open (Let's Encrypt HTTP-01 challenge requires it)
  • Check the ACME log: cat /var/log/kpanel/acme.log
  • Let's Encrypt rate limits: max 5 duplicate certificates per 7 days

Email Not Delivered

  • Check SPF, DKIM, and DMARC records are published in DNS
  • Verify reverse DNS (PTR) record matches your server hostname
  • Check if your server IP is on a blacklist: MXToolbox
  • Review the mail log: tail -f /var/log/mail.log

Website Showing "403 Forbidden"

This is usually a file permissions issue. Set correct permissions:

bash · Fix permissions
find /home/myuser/public_html -type d -exec chmod 755 {} \;
find /home/myuser/public_html -type f -exec chmod 644 {} \;
Next up
Error Logs
Troubleshooting

Error Logs

Where to find logs for debugging issues

KPanel centralises all log files under /var/log/kpanel/ for panel-specific logs. Web server, mail, and database logs are in their standard system locations. You can also view logs from within the KPanel WHM interface under Server → Log Viewer.

Log FileContains
/var/log/kpanel/panel.logKPanel application events, errors, API calls
/var/log/kpanel/acme.logLet's Encrypt SSL issuance and renewal attempts
/var/log/lsws/error.logOpenLiteSpeed web server errors
/var/log/nginx/error.logNginx web server errors (if Nginx install)
/home/user/logs/yourdomain.com.error.logPer-domain PHP and application errors
/var/log/mail.logPostfix/Dovecot mail events
/var/log/mysql/error.logMariaDB/MySQL errors
/var/log/csf.logCSF firewall block/allow events

Tailing Logs in Real Time

bash · Live log tailing
# KPanel panel log
tail -f /var/log/kpanel/panel.log

# Domain-specific PHP errors (replace user/domain)
tail -f /home/myuser/logs/yourdomain.com.error.log

# Mail log
tail -f /var/log/mail.log | grep "yourdomain.com"
Next up
Reset Panel Password
Troubleshooting

Reset Panel Password

Regain access if you've lost your admin credentials

If you have lost the admin password for KPanel or the root WHM panel, you can reset it directly from the command line with root SSH access to the server.

Reset Admin Password via CLI

bash · Reset admin password
# Reset the main KPanel admin account password
kpanel-cli user:password admin NewSecurePassword123!

# Or run interactively (prompts for password)
kpanel-cli user:password admin --prompt

Reset a User Account Password

bash
# Reset password for a specific hosting account user
kpanel-cli user:password myuser NewPassword456!

# This also resets the FTP and SSH password for that user

WHM administrators can also reset any user password from the graphical interface: WHM → Account Manager → [account] → Change Password. No root SSH access required for this method.

Next up
FAQ
Troubleshooting

Frequently Asked Questions

Quick answers to common KPanel questions

Is KPanel free?

KPanel offers a 30-day free trial — no credit card required, full access from day one. After the trial, choose the plan that suits you:

Monthly — $5/month per server, unlimited hosting accounts, 5 support tickets/month.
Annual — $50/year per server, unlimited hosting accounts, 20 support tickets/year (saves $10 vs monthly).
Lifetime — $400 once per server, unlimited hosting accounts, 20 support tickets, 1 year of free updates included. Never pay again.

Can I migrate from cPanel?

Yes. KPanel includes a cPanel Migration Tool under WHM → Migration that can import full cPanel account backups (.tar.gz files generated by cPanel's PKG backup system). Files, databases, email accounts, forwarders, and DNS zones are all imported. Go to WHM → Migration → Import cPanel Backup and upload or specify an SFTP path to your backup files.

What web servers does KPanel support?

KPanel supports OpenLiteSpeed (recommended for performance — typically 3–5× faster than Apache for PHP workloads) and Nginx. Apache is not supported. The web server is chosen during initial installation and can be switched later with the kpanel-cli webserver:switch command.

Does KPanel support Node.js / Python / Ruby apps?

Yes. KPanel supports running Node.js (via reverse proxy), Python (Django/Flask via WSGI), and Ruby (Rails via Passenger) applications. Configure these under Software → Application Manager for each domain. The application manager handles process management, auto-restart on crash, and port assignment.

Can I run KPanel on a VPS with 1 GB RAM?

Yes, KPanel will install and run on 1 GB RAM, but it is not recommended for production with more than 2–3 low-traffic sites. With 1 GB RAM, the system may invoke the OOM killer under load. 2 GB RAM is the recommended minimum for production. Enable a 2 GB swap file as a buffer: fallocate -l 2G /swapfile && mkswap /swapfile && swapon /swapfile.

How do I update KPanel to the latest version?

bash · Update KPanel
# Update KPanel (applies to panel, CLI tools, and configs)
kpanel-cli self:update

# Or via the package manager
apt update && apt upgrade kpanel

Updates are also available from WHM → Server → KPanel Updates. KPanel checks for updates daily and shows a notification badge in WHM when a new version is available. Always take a server snapshot before updating.

Is there a staging / dev environment feature?

Yes. KPanel's Staging Manager (under each domain's settings) can create a full clone of your site at a subdomain like staging.yourdomain.com with one click. When you are ready to go live, the Push to Production button syncs all files and database changes from staging back to the live site, with an automatic backup taken first.

How do I get support?

Support options vary by licence tier:

TierSupport ChannelResponse Time
FreeCommunity forums, docsCommunity-driven
Monthly ($5/mo)Ticket system5 tickets/month48 hours
Annual ($50/yr)Ticket system20 tickets/year24 hours
Lifetime ($400)Ticket system20 tickets included24 hours
EnterpriseDedicated engineer30 minutes

Where can I report bugs or request features?

Bug reports and feature requests can be filed on the KPanel GitHub repository. For security vulnerabilities, please email security@kpanel.uk directly rather than filing a public issue.

Join the KPanel Community Discord for real-time help from the community and the KPanel development team. The invite link is in your client area dashboard.