- Docs
- Administrator guide
- WHMCS module
WHMCS module
Install and configure the PikoStack provisioning module for WHMCS, map products to plans and templates, and test orders.
The PikoStack module automates the full VPS lifecycle from WHMCS through the hosting API.
Requirements#
- WHMCS 8.x on PHP 8.1 or later, with the cURL extension
- Network access from the WHMCS server to the PikoStack API (default port 8090 on loopback, or your TLS port)
- An
adminAPI token for WHMCS; see API tokens
Install#
- Download the module from the customer portal.
- Copy the
pikostackfolder tomodules/servers/in your WHMCS installation, so thatmodules/servers/pikostack/pikostack.phpexists.
Add the server#
In System Settings › Servers › Add New Server:
| Field | Value |
|---|---|
| Module | PikoStack |
| Hostname | Your PikoStack API host name (or IP) |
| Port | 443 with SSL, or 8090 |
| Secure | Tick when the API uses HTTPS |
| Access Hash | The API token secret |
Click Test Connection. It calls the API's version endpoint with your token.
Create a product#
In Products/Services › Create a New Product, choose type Server/VPS, then on the Module Settings tab:
| Setting | Meaning |
|---|---|
| Plan | A plan name from GET /api/v1/plans, for example piko.small |
| Default Template | A template key, for example ubuntu-24.04 |
To let customers pick their OS, add a configurable option named Operating System whose option values are template keys. Add a custom field named SSH Key if you want customers to paste a public key at checkout.
What each action does#
| WHMCS action | PikoStack |
|---|---|
| Create | Creates the server with the plan, template, hostname, root password and SSH keys; the owner is whmcs:<service id> |
| Suspend / Unsuspend | Suspends or resumes the server |
| Terminate | Deletes the server |
| Change Package | Resizes to the product's new plan |
| Rebuild (custom button) | Reinstalls with the selected template |
| Start, Stop, Reboot, Hard Reboot | Power actions (customers get Start, Stop and Reboot) |
The server's IPv4 addresses are saved to the service's dedicated and assigned IP fields automatically.
Logs#
Every API call is written to System Logs › Module Log when module logging is on. The token is masked in the log.
Troubleshooting#
| Symptom | Fix |
|---|---|
| Test Connection: unauthorized | The access hash is not a valid token, or its hash is not in pikod.yaml |
| Create: plan not found | The product's plan does not exist or lacks the piko. prefix |
| Create timed out in WHMCS | Run Create again: the module finds the server it already created for this service |
| Suspend fails for a stopped VPS | Fixed in the current module; update it from the portal |
Something unclear or wrong on this page? Tell us. © 2026 PikoStack.