# cPanel
# Overview
PanelAlpha offers integration with cPanel, commonly used for shared hosting environments.
# Prerequisites
- cPanel/WHM server reachable from PanelAlpha
- A cPanel user API token (generated for the username provided)
- Root SSH access to the server (required to install the connector)
# Configure in PanelAlpha
Navigate to Configuration → Servers → Hosting Services → Add Server.
Fill out the form:
- Name — Enter the server name
- Type — Select cPanel
- Group — Choose an existing group or create a new one
- IP/Hostname — Enter the server IP address or hostname
- Username — Enter the username for which the token has been generated
- API Token — Previously generated API token (opens new window)
- SSL Verification — Select if you want to connect via SSL
- Onboarding Domain (Optional) — If entered, used for instance creation instead of the plan domain with Quick or Super Quick onboarding
- Test Connection — Check if the connection is successful
Important: Refer to the cPanel official documentation to learn how to generate the API token. Read this article (opens new window).
# Verify the Connection
Use Test Connection. If the test succeeds, you can proceed.
# Install the Connector (WP-CLI)
After a successful connection test, install the connector on the cPanel server:
- Download the connector.
- Unzip the package:
unzip -u /root/PanelAlpha.zip -d /root - Run the connector installation:
sh /root/PanelAlpha/install.sh - Shortly after, you should receive confirmation of successful installation.
- Ensure there is at least one cPanel user on the server for WP-CLI initialization.
- Verify the integration test is successful. Press Add Server.
# Plan Configuration
When creating a plan, go to the Hosting step. After choosing cPanel and selecting a server group, additional configuration appears:
- WHM Package — The hosting package name used when provisioning accounts
# Troubleshooting
To allow customers to create a subdomain on another user's domain, enable Allow cPanel users to create subdomains across accounts in cPanel → Tweak Settings.
- Log into WHM and proceed to Tweak Settings.
- Find Allow cPanel users to create subdomains across accounts and set it to On.
- Press Save.
Please be aware that cPanel does not recommend enabling this option as it may result in serious security issues.
For more information, refer to the cPanel documentation (opens new window).