WHMCS integration
Upload the server module, create the VMRobot connection and verify your product with a test order.
#Before connecting
The VMRobot panel must be running, and a test server must already have been created with a Proxmox connection, an IP pool and a template. Have your WHMCS administrator access, the official VMRobot module package and the API key you will create in your panel ready.
If you do not have the module package, request the WHMCS package from the VMRobot support team. In the message field of the contact form, enter your WHMCS version, PHP version and VMRobot panel version. Once you have received the right package and its release notes, continue with the steps below.
#Upload the module files
Back up your WHMCS files and extract the module package on your local machine.
Place the package's server module folder in the
modules/servers/directory of WHMCS, using the name given in the package instructions.Check that you have not created a duplicate nested folder. If the package names the module
vmrobot, the path of the main file must bemodules/servers/vmrobot/vmrobot.php.Check that the VMRobot module can be selected on the WHMCS Add New Server screen.
#Create the VMRobot connection
Create an API key in the VMRobot panel. In the WHMCS server configuration, select VMRobot as the module type; enter the VMRobot panel address and the API key in the fields the package requires. Do not enter a Proxmox user password or the Proxmox management address here.
The panel address must use HTTPS. If the module has a connection test, run it; otherwise, check that the connection and template lists load in the product configuration. Do not put the API key in custom fields that customers can see.
#Map the product and its resources
| Product setting | Value to check |
|---|---|
| Connection / node | The Proxmox connection and a suitable node for the service to run on. |
| Template | The operating system template you tested. |
| CPU / memory / disk | Use the units specified in the package. For example, 2 vCPU, 4096 MB RAM and a 50 GB disk make a test product. |
| Network / IP pool | The network to be assigned to the service and enough free IPs. |
| Automation trigger | Create after payment or after manual approval; choose according to your business's order flow. |
#Verify with a test order
Prepare a test product and order with which you can check that automatic provisioning is triggered.
Activate the order through your business's normal payment/approval flow.
Check that the WHMCS service record, the VMRobot server record and the Proxmox task all belong to the same server.
On the customer screen, test the power and console actions that your module version offers. Try suspend and terminate only on this test service.
#If the connection or provisioning fails
| Symptom | Check |
|---|---|
| Module is not in the list | Folder name, file location and the package's compatibility notes. |
| 401 / 403 | The API key and the permissions of the key's owner. |
| Template list is empty | The VMRobot connection and whether the template is assigned to that connection. |
| Provisioning fails | Product units, free IPs, storage capacity and the Proxmox task log. |
Technical details: diagnostic log
Temporarily use the WHMCS Module Log to compare the time and error code of the failed request with the VMRobot log. Mask the Authorization header, passwords and customer details before sharing. Turn off the unneeded detailed logging once you have finished investigating.