WHMCS makes it easy to automate web hosting account provisioning with cPanel. This guide will walk you through connecting your WHMCS installation to your cPanel reseller account.
Access your WHMCS admin area by navigating to yourdomain.com/admin.
Enter your admin credentials to log in.
From the WHMCS dashboard, go to Setup > Products/Services > Servers.
Click Add New Server.
Fill in the following details:
Name: Enter a descriptive server name (e.g., "cPanel Reseller").
Hostname: Enter your cPanel server's hostname (e.g., server.yourdomain.com).
IP Address: Enter the IP address of your cPanel server.
Nameservers: Add your server's nameservers (e.g., ns1.yourdomain.com, ns2.yourdomain.com).
Type: Select cPanel from the dropdown menu.
Username: Enter your reseller username.
Password: Enter your reseller account password (Recommended: Use API Token instead).
Log in to WHM on your cPanel server.
Navigate to Development > Manage API Tokens.
Click Generate Token.
Name your token (e.g., "WHMCS Integration").
Select All Access or specify only the required permissions.
Copy the generated token.
Paste the token in the Password field in WHMCS.
Check the SSL Mode box to ensure secure communication with your cPanel server.
Port 2087 should be automatically selected for secure WHM connections.
Click Test Connection to verify the connection. If successful, click Save Changes.
Go to Setup > Products/Services > Servers.
Click the Create New Group button.
Name the group (e.g., "cPanel Hosting").
Assign your newly added cPanel server to this group.
Click Save Changes.
Go to Setup > Products/Services > Products/Services.
Click Create a New Product.
Select Product Type as Shared Hosting.
Assign it to your previously created Server Group.
Configure the product details:
Module Settings Tab: Select cPanel as the module.
Set your desired hosting limits, such as disk space, bandwidth, etc.
Click Save Changes.
Go to Clients in WHMCS.
Add a new client or select an existing one.
Create a new order using your newly created hosting product.
After payment processing, WHMCS will automatically provision the account on your cPanel server.
Ensure your firewall allows traffic on port 2087.
Double-check API token permissions in WHM.
Verify that the hostname and IP address are correct in your server settings.
For additional support, refer to WHMCS documentation or contact support at support@nodespace.com.