CyberPanel Integration
This guide explains how to configure the Ultimate Multisite CyberPanel integration so that mapped domains in your network are automatically added (and removed) as virtual hosts in CyberPanel, with optional auto-SSL provisioning via Let's Encrypt.
What It Does
- When a domain is mapped in Ultimate Multisite, the integration calls the CyberPanel API to create a virtual host for that domain.
- When a domain mapping is removed, the integration calls the API to delete the corresponding virtual host.
- When auto-SSL is enabled, the integration triggers Let's Encrypt certificate issuance immediately after the virtual host is created.
- Optionally adds/removes the
www.alias depending on your "Auto-create www subdomain" setting in Domain Mapping settings.
Prerequisites
- A running CyberPanel instance (v2.3 or later recommended) reachable from your WordPress server.
- An existing website in CyberPanel that already serves your WordPress network root. The integration attaches new virtual hosts to this server.
- CyberPanel API access enabled. Authentication uses your CyberPanel admin username and password.
- Your DNS records for mapped domains must already point to your server's IP address before auto-SSL can issue a valid certificate.
Requirements
The following constants must be defined in your wp-config.php file:
define('WU_CYBERPANEL_HOST', 'https://your-cyberpanel-host:8090');
define('WU_CYBERPANEL_USERNAME', 'your_admin_username');
define('WU_CYBERPANEL_PASSWORD', 'your_admin_password');
define('WU_CYBERPANEL_PACKAGE', 'Default');
Optionally, you can also define:
define('WU_CYBERPANEL_AUTO_SSL', true); // Default: true — issue Let's Encrypt SSL after domain creation
define('WU_CYBERPANEL_PHP_VERSION', 'PHP 8.2'); // Default: PHP 8.2
define('WU_CYBERPANEL_EMAIL', '[email protected]'); // Used for SSL certificate contact
Setup Instructions
1. Enable the CyberPanel API
- Log in to your CyberPanel dashboard as an administrator.
- Go to Security > SSL and confirm that SSL is active on the CyberPanel interface itself (required for secure API calls).
- The CyberPanel API is available at
https://your-server-ip:8090/api/by default. No additional steps are needed to enable it — it is on by default for admin users.
2. Add Constants to wp-config.php
Add the following constants to your wp-config.php file before the /* That's all, stop editing! */ line:
define('WU_CYBERPANEL_HOST', 'https://your-cyberpanel-host:8090');
define('WU_CYBERPANEL_USERNAME', 'admin');
define('WU_CYBERPANEL_PASSWORD', 'your_secure_password');
define('WU_CYBERPANEL_PACKAGE', 'Default');
To enable auto-SSL (recommended):
define('WU_CYBERPANEL_AUTO_SSL', true);
define('WU_CYBERPANEL_EMAIL', '[email protected]');
3. Enable the Integration
- In your WordPress network admin, go to Ultimate Multisite > Settings.
- Navigate to the Domain Mapping tab.
- Scroll down to Host Integrations.
- Enable the CyberPanel integration.
- Click Save Changes.