What is KPanel?
Last updated · October 2025 · v2.4KPanel 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
| Feature | KPanel | cPanel |
|---|---|---|
| Monthly licence — unlimited accounts | $5/month | $45–$200/month |
| Web server | OpenLiteSpeed / Nginx | Apache only |
| OS support | Ubuntu 22.04, 24.04 | AlmaLinux, RHEL |
| WHMCS integration | Native module | Native module |
| Let's Encrypt SSL | Auto-renew included | Paid add-on |
| API access | Full REST API | JSON/XML API |
| Container isolation | Kernel namespaces | CloudLinux (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.
Server Requirements
Hardware & software prerequisites before installationBefore 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
| Component | Minimum | Recommended | Production |
|---|---|---|---|
| CPU | 1 vCPU | 2 vCPU | 4+ vCPU |
| RAM | 1 GB | 2 GB | 4 GB+ |
| Disk | 20 GB SSD | 40 GB SSD | 100 GB+ NVMe |
| Bandwidth | 100 Mbps | 1 Gbps | 1 Gbps+ |
| IPv4 | 1 dedicated IP | 1 dedicated IP | Multiple 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.comresolving 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:
- Root or sudo access is available
- The system hostname is set correctly:
hostnamectl set-hostname server1.yourdomain.com - No web server (Apache/Nginx) is already installed
curlandwgetare available:apt install -y curl wget- 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.
Installation
Get KPanel running on your server in under 10 minutesKPanel 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
# 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 <(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
# 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:
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.
First Login
Accessing the panel and completing the setup wizardOnce 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
| Interface | URL | Default User |
|---|---|---|
| User Panel (KPanel) | https://your-server-ip:2083 | admin |
| WHM Admin Panel | https://your-server-ip:2087 | root |
| Webmail (Roundcube) | https://your-server-ip/webmail | email address |
| phpMyAdmin | https://your-server-ip/phpmyadmin | SSO 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:
-
Change Admin Password
Enter a strong password for the
adminaccount. Minimum 12 characters, mix of letters, numbers, and symbols. -
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.
-
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. -
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.
-
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.
Quick Start Guide
From fresh install to live website in under 15 minutesThis 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.
- Point your domain's DNS to your server
Log into your domain registrar and create an
Arecord pointingyourdomain.comandwww.yourdomain.comto your server IP. DNS propagation can take 5–60 minutes. - Add a hosting account
In KPanel WHM, go to Accounts → Create Account. Enter the domain, username, email, and choose a hosting package. Click Create.
- Log into the user panel
Navigate to
https://your-server:2083and log in with the credentials you set for the new account. - 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.
- 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.
Dashboard Overview
Understanding the KPanel user interfaceThe 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.
File Manager
Upload, edit, organise, and manage your website filesThe 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
- Navigate to your document root
Open File Manager and navigate to
public_html/(or the subdomain's directory if applicable). - 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.
- 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.
Databases & phpMyAdmin
Create and manage MySQL/MariaDB databasesKPanel 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
- Go to Databases → MySQL Databases
From the sidebar, expand Databases and click MySQL Databases.
- Enter a database name
Your account username is automatically prepended (e.g.
myuser_). Type the suffix, such aswordpress, to createmyuser_wordpress. - 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.
- 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
$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.
Email Accounts
Create professional email addresses for your domainKPanel 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
- Navigate to Email → Email Accounts
From the sidebar, expand Email and click Email Accounts.
- Fill in the account details
Enter the local part (e.g.
hello) — the full address will behello@yourdomain.com. Set a strong password and a storage quota (or leave blank for unlimited). - 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)
| Setting | Incoming (IMAP) | Outgoing (SMTP) |
|---|---|---|
| Server | mail.yourdomain.com | mail.yourdomain.com |
| Port | 993 (SSL) | 465 (SSL) or 587 (STARTTLS) |
| Encryption | SSL/TLS | SSL/TLS |
| Username | Full email address | Full email address |
| Authentication | Password | Password |
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.
Domains & Subdomains
Add addon domains, subdomains, and manage document rootsA 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
- Go to Domains → Addon Domains
Click Add Addon Domain. Enter the full domain name (e.g.
newsite.com). - 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. - 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.
- 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.
SSL / TLS Certificates
Secure your domains with free Let's Encrypt or custom certificatesKPanel 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
- Go to SSL/TLS → Auto SSL
The Auto SSL page lists all domains associated with your account and their current certificate status.
- 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.
- 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).
# 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.
DNS Zone Editor
Manage DNS records for domains hosted on your serverKPanel 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
| Type | Purpose | Example Value |
|---|---|---|
A | Map hostname to IPv4 | 203.0.113.1 |
AAAA | Map hostname to IPv6 | 2001:db8::1 |
CNAME | Alias to another hostname | yourdomain.com. |
MX | Mail server | 10 mail.yourdomain.com. |
TXT | SPF, DKIM, DMARC, verification | "v=spf1 ip4:203.0.113.1 ~all" |
SRV | Service location | 10 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.
FTP Accounts
Upload files via FTP / FTPS using your preferred clientKPanel 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
- Go to Files → FTP Accounts
Click Create FTP Account.
- Enter username and password
The username is prefixed with your account username automatically (e.g.
myuser_ftpuser). - 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. - 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.
Backups & Restore
Automated and on-demand backups for your account dataKPanel 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
- Go to Files → Backup → Restore
Select the backup archive from the list or upload a
.tar.gzfile from your local machine. - 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.
- 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.
PHP Version Manager
Switch PHP versions per domain without server restartsKPanel 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 Version | Status | Recommended For |
|---|---|---|
| PHP 8.3 | Latest Stable | Laravel 11, WordPress 6.5+, new projects |
| PHP 8.2 | Stable | Most modern frameworks |
| PHP 8.1 | Security fixes | Older Laravel, Symfony projects |
| PHP 7.4 | Legacy | Legacy applications only |
Cron Jobs
Schedule recurring tasks with KPanel's cron managerCron 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
- Go to Advanced → Cron Jobs
Click Add Cron Job.
- Choose a frequency
Select a preset (Every 5 Minutes, Hourly, Daily, Weekly, Monthly) or enter a custom cron expression in the five-field input.
- Enter the command
Use the full path to the PHP binary, e.g.
/usr/bin/php /home/myuser/public_html/artisan schedule:run.
# 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
App Installer
One-click install for WordPress, Joomla, Drupal and 40+ appsThe 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
- Go to Software → App Installer
Click the WordPress tile or search for it.
- 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.
- 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. - 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.
Admin WHM Panel
Server-wide administration for hosting providersThe 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
Reseller System
Sell hosting under your brand with full WHM sub-accessKPanel'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
- Create a hosting account first
All resellers start as regular hosting accounts. Create the account via WHM → Create Account.
- Grant reseller privileges
Go to WHM → Reseller Manager → Grant Reseller Status. Select the account and assign a reseller package.
- 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.
- Configure brand / nameservers
Resellers can set their own nameservers (e.g.
ns1.theirbrand.com) that KPanel will pre-fill when creating accounts under them.
Creating Packages
Define hosting tiers with resource quotasPackages (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
| Setting | Description | Example |
|---|---|---|
| Disk Quota | Total disk space (MB). 0 = unlimited | 10240 (10 GB) |
| Bandwidth | Monthly bandwidth (MB). 0 = unlimited | 102400 (100 GB) |
| Max Email Accounts | Number of mailboxes. 0 = unlimited | 25 |
| Max Databases | MySQL/MariaDB databases. 0 = unlimited | 10 |
| Max Subdomains | Subdomains per account | 20 |
| Max Addon Domains | Additional hosted domains | 5 |
| PHP Versions Allowed | Which PHP versions are available | 8.1, 8.2, 8.3 |
Managing Accounts
Suspend, terminate, and modify hosting accountsWHM 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.
WHMCS Integration — Installing the Module
Automate account provisioning with WHMCS billingThe 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:
# 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
- Log into KPanel WHM
Go to WHM → API Manager → Create API Key.
- 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. - 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
- Go to WHMCS → Setup → Products → Servers
Click Add New Server.
- 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 - 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.
Connecting to KPanel
API authentication and connection troubleshootingWHMCS 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
https://your-kpanel-server:2087/api/v1/
Testing the Connection Manually
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"}
Provisioning Setup
Automate account creation when customers payOnce 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
- Customer places order and pays
WHMCS marks the order as paid and triggers the Create Account hook.
- WHMCS sends provisioning request to KPanel API
The module POST's to
/api/v1/accounts/createwith the domain, username, password, and package name. - KPanel creates the account
The account is created instantly. KPanel returns a 200 OK with the account details.
- 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.
SSO Login
One-click login from WHMCS to KPanelKPanel 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
- Customer clicks "Login to Panel" in WHMCS
WHMCS calls the KPanel module's
LoginLinkfunction. - WHMCS requests a one-time token from KPanel API
A POST to
/api/v1/sso/tokenwith the account username returns a signed JWT token valid for 90 seconds. - 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.
Container & User Isolation
How KPanel keeps every client strictly isolated inside their own sandboxIf 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.
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
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.
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.
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.
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.
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:
# 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/shadowor traverse/root - Canary profile: Confirms native systemd isolation and memory cgroup boundaries are actively running
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.
ModSecurity WAF
Web Application Firewall powered by OWASP Core Rule SetKPanel 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
# 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:
# Disable rule 941100 for a specific domain
<VirtualHost yourdomain.com>
SecRuleRemoveById 941100
</VirtualHost>
SSH & SFTP Access
Secure shell and file transfer protocol configurationSSH 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
ssh myuser@your-server-ip -p 22
Using SSH Keys (Recommended)
# 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.
Firewall Rules
CSF/iptables configuration via KPanel's firewall managerKPanel 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
| Port | Protocol | Service |
|---|---|---|
| 22 | TCP | SSH |
| 21, 20 | TCP | FTP |
| 80, 443 | TCP | HTTP / HTTPS |
| 110, 995 | TCP | POP3 / POP3S |
| 143, 993 | TCP | IMAP / IMAPS |
| 465, 587 | TCP | SMTP Submission |
| 2083, 2087 | TCP | KPanel / WHM |
| 2096 | TCP | Webmail |
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.
Common Issues
Fixes for the most frequently reported problemsBelow 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):
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:
find /home/myuser/public_html -type d -exec chmod 755 {} \;
find /home/myuser/public_html -type f -exec chmod 644 {} \;
Error Logs
Where to find logs for debugging issuesKPanel 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 File | Contains |
|---|---|
/var/log/kpanel/panel.log | KPanel application events, errors, API calls |
/var/log/kpanel/acme.log | Let's Encrypt SSL issuance and renewal attempts |
/var/log/lsws/error.log | OpenLiteSpeed web server errors |
/var/log/nginx/error.log | Nginx web server errors (if Nginx install) |
/home/user/logs/yourdomain.com.error.log | Per-domain PHP and application errors |
/var/log/mail.log | Postfix/Dovecot mail events |
/var/log/mysql/error.log | MariaDB/MySQL errors |
/var/log/csf.log | CSF firewall block/allow events |
Tailing Logs in Real Time
# 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"
Reset Panel Password
Regain access if you've lost your admin credentialsIf 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
# 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
# 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.
Frequently Asked Questions
Quick answers to common KPanel questionsIs 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?
# 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:
| Tier | Support Channel | Response Time | |
|---|---|---|---|
| Free | Community forums, docs | Community-driven | |
| Monthly ($5/mo) | Ticket system | 5 tickets/month | 48 hours |
| Annual ($50/yr) | Ticket system | 20 tickets/year | 24 hours |
| Lifetime ($400) | Ticket system | 20 tickets included | 24 hours |
| Enterprise | Dedicated engineer | 30 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.