???? How to Integrate CWP (Control Web Panel) with WHMCS (PHP 8.3 Compatible)
If you're using WHMCS with PHP 8.3 and want to manage your hosting accounts with Control Web Panel (CWP), this custom server module enables full integration – including automatic account creation, suspension, termination, and client auto-login.
???? Download Module
???? Download cwp7-whmcs-module.zip
(replace with actual file link)
✅ Features
Fully compatible with PHP 8.3
Supports account creation, termination, suspend, unsuspend
Auto-login link for clients
Easy setup with WHMCS Products/Services
Works over CWP API v1 (port 2304)
???? Installation Instructions
Download & Extract
Download the module ZIP file
Extract it on your local machine
Upload Module
Upload the extracted folder to:
/modules/servers/cwp7/
Set Permissions
Ensure the folder and files are readable by WHMCS:
chmod -R 755 modules/servers/cwp7/
Create API Key in CWP
Login to CWP Admin
Go to: API Manager → Add API
Give permissions to:
list_users
user_session
add_user
suspend_user
unsuspend_user
delete_user
Save and copy the API Key
Configure WHMCS Server
Go to WHMCS → System Settings → Servers
Add New Server:
Name: CWP Server
Hostname: e.g., your.server.com
IP Address: your.server IP
Type: CWP7
Username: any (e.g., admin)
Access Hash: paste your API Key here
Tick Secure if you use HTTPS
Create Product
Go to: WHMCS → Products/Services → Create New Product
Module Settings:
Select Module: CWP7
Enter Package Name (must match CWP package exactly)
Auto Login
Clients can log in to their CWP panel directly from WHMCS with a one-click login button via Client Area.
???? PHP Version Compatibility
PHP Version Status
7.4 ✅ Supported
8.0 ✅ Supported
8.1 ✅ Supported
8.2 ✅ Supported
8.3 ✅ Fully Supported ✔️
❓FAQ
Q: Does this work with CWP Pro and CWP Free?
A: Yes. Works with both. API key functionality is available in both versions.
Q: What port must be open for auto-login?
A: Make sure port 2304 is open for WHMCS to communicate with the CWP API.
Q: What does “Package Name” refer to in module settings?
A: It’s the exact name of the hosting package you created in CWP under Packages → List Packages.
Q: I get a blank page or error in WHMCS module. What should I do?
A: Enable PHP error logs, and double-check:
PHP 8.3 compatibility
WHMCS system URL and server IP
CWP server accepts API connection
API permissions are properly set
???? Troubleshooting
Enable WHMCS module logging:
Go to Utilities → Logs → Module Log and click Enable Debug Logging.
Reproduce the action and view the log to find any issues with API calls or credentials.
If you need help setting this up or custom development, feel free to contact our support team.
Would you like me to export this KB article into a PDF, HTML, or Markdown format for easy upload to your portal?
- 0 Kunder som kunne bruge dette svar