-
-
Couldn't load subscription status.
- Fork 63
cPanel Integration
GitHub Action edited this page Sep 17, 2025
·
3 revisions
cPanel is one of the most popular web hosting control panels used by many shared and dedicated hosting providers. This integration enables automatic domain syncing between Ultimate Multisite and cPanel, allowing you to automatically add domain aliases and subdomains to your cPanel account.
- Automatic addon domain creation in cPanel
- Automatic subdomain creation in cPanel (for subdomain multisite installations)
- Domain removal when mappings are deleted
The following constants must be defined in your wp-config.php file:
define('WU_CPANEL_USERNAME', 'your_cpanel_username');
define('WU_CPANEL_PASSWORD', 'your_cpanel_password');
define('WU_CPANEL_HOST', 'your_cpanel_host');Optionally, you can also define:
define('WU_CPANEL_PORT', 2083); // Default is 2083
define('WU_CPANEL_ROOT_DIR', '/public_html'); // Default is /public_html- Obtain your cPanel username and password from your hosting provider
- Determine your cPanel host (usually
cpanel.yourdomain.comoryourdomain.com:2083)
Add the following constants to your wp-config.php file:
define('WU_CPANEL_USERNAME', 'your_cpanel_username');
define('WU_CPANEL_PASSWORD', 'your_cpanel_password');
define('WU_CPANEL_HOST', 'your_cpanel_host');Optionally, you can customize the port and root directory:
define('WU_CPANEL_PORT', 2083); // Change if your cPanel uses a different port
define('WU_CPANEL_ROOT_DIR', '/public_html'); // Change if your document root is different- In your WordPress admin, go to Ultimate Multisite > Settings
- Navigate to the "Domain Mapping" tab
- Scroll down to "Host Integrations"
- Enable the cPanel integration
- Click "Save Changes"
When a domain is mapped in Ultimate Multisite:
- The integration sends a request to cPanel's API to add the domain as an addon domain
- The domain is configured to point to your root directory
- When a domain mapping is removed, the integration will remove the addon domain from cPanel
For subdomain multisite installations, when a new site is created:
- The integration extracts the subdomain part from the full domain
- It sends a request to cPanel's API to add the subdomain
- The subdomain is configured to point to your root directory
- The integration uses cPanel's API2 to communicate with your cPanel account
- Your cPanel account must have permissions to add addon domains and subdomains
- Some hosting providers may limit the number of addon domains or subdomains you can create
- The integration does not handle DNS configuration; you still need to point your domains to your server's IP address
- Verify that your cPanel username and password are correct
- Check that your cPanel host is correct and accessible
- Ensure that your cPanel account has the necessary permissions
- Try using the full URL for the host (e.g.,
https://cpanel.yourdomain.com)
- Check the Ultimate Multisite logs for any error messages
- Verify that the domain is not already added to cPanel
- Ensure that your cPanel account has not reached its limit for addon domains or subdomains
- The integration does not handle SSL certificate issuance
- You will need to use cPanel's SSL/TLS tools or AutoSSL feature to issue SSL certificates for your domains
- Alternatively, you can use a service like Let's Encrypt with cPanel's AutoSSL
- Ultimate Multisite 101
- Basic Concepts
- What is WordPress Multisite?
- Ultimate Multisite Requirements
- Why Ultimate Multisite
- Installing Ultimate Multisite (v2)
- How do I Install WordPress Multisite?
- Understanding the Ultimate Multisite Dashboard
- Understanding your Dashboard (v2)
- Touring the Admin Panel
- Managing Customers
- Managing Sites
- Managing Memberships (v2)
- Managing Payments and Invoices
- Managing System Emails
- Site Templates (v2)
- Auto Search and Replace in Site Templates (v2)
- Checkout Forms
- Creating your First Subscription Product (v2)
- Creating Discount Codes (v2)
- Managing Shareable Links for Plans
- Customizing your Registration Form
- The Registration Flow (v2)
- How to Configure Domain Mapping (v2)
- How to configure domain mapping (v1)
- Setting the Sunrise constant to true on Closte
- Closte Integration
- Cloudflare Integration
- Cloudways Integration
- cPanel Integration
- GridPane Integration
- RunCloud Integration
- ServerPilot Integration
- WP Engine Integration
- WPMU DEV Integration
- Setting Up The Stripe Gateway (v2)
- Setting Up The PayPal Gateway (v2)
- Setting Up Manual Payments (v2)
- Getting Started with the PayFast Payment Gateway
- Getting Started with the GoCardless Payment Gateway
- Getting Paid (v2)
- Tax Handling
- Your Client's Account Page (v2)
- Your Client's Websites (v2)
- Upgrading a Plan (v2)
- Downgrading a plan (v2)
- Canceling a Membership (v2)
- How can I access my account page for the first time?
- How can I cancel my subscription?
- Setting Up The WooCommerce Integration (v2)
- Integrating Ultimate Multisite with Zapier
- Event: Register an account via Zapier
- Using Ultimate Multisite: MailChimp Integration
- Using Ultimate Multisite: AffiliateWP Integration to create your own referral program for Ultimate Multisite
- A First Look on Webhooks (v2)
- Customizing your Admin Panel with PRO Theme
- Customizing your Admin Panel with Material WP
- Placing Ads on your network with Ultimate Multisite: Ad Injector
- Creating Custom Admin Pages and Sub-pages using Ultimate Multisite: Admin Page Creator
- Editing Plugins and Themes Meta Information with Ultimate Multisite: Plugin and Theme Manager
- Ultimate Multisite Hooks and filters
- The Ultimate Multisite Register API endpoint
- How to use Ultimate Multisite snippets on our GitHub repository
- Code Snippets for v2
- How to Get Custom Development Help from Codeable?
- Translating Ultimate Multisite
- Activating Ultimate Multisite: Language Selector
- Re-ordering the Ultimate Multisite country list