What the module does#
| WHMCS event | What happens in PikoStack |
|---|---|
| Create | A VPS is created from the product's plan and the chosen OS template, with hostname, root password and SSH keys |
| Suspend and unsuspend | The VPS is suspended and resumed |
| Terminate | The VPS and its resources are deleted |
| Change package | The VPS is resized to the new plan |
| Reinstall (custom button) | The VPS is rebuilt with a new template |
| Start, stop, reboot | Power actions in the admin area and the client area (hard reboot for admins) |
| Test connection | Verifies the API endpoint and token |
The VPS IP address is saved to the WHMCS service automatically, and customers see their server's status in the client area.
Set up in five minutes#
- Copy the
pikostackmodule folder intomodules/servers/on your WHMCS server. - Create an API token on PikoStack:
pikod token -name whmcs -role admin. - In WHMCS, add a server of type PikoStack with your panel address and the token as the access hash.
- Create a product, choose the PikoStack module and set the plan (for example
piko.small) and default template. - Optionally add a configurable option named "Operating System" so customers choose their OS at checkout.
Secure by design#
The token is sent only over HTTPS and can be limited to your WHMCS server's IP with the host firewall. Root passwords are hashed by PikoStack before they reach the virtualization engine, and SSH keys from the order are injected at first boot.