Hostinger VPS Module installation for ClientExec
Hostinger VPS Automation for ClientExec is a highly convenient tool for anyone looking to automate the management of their Hostinger VPS servers.
This module enables your clients to remotely manage server status, access the docker details (if installed), and rebuild their machines with ease. It also offers flexibility to customize your services, making it easy to meet even the most demanding client requirements.
Obtaining/Generating Datalix API
- Go to https://hpanel.hostinger.com/profile/api to get the API key for our project
- You can even get it via Profile Information -> API section or you can open the above link directly
- Click on New Token -> Give a suitable name and select the TTL value for your token, we suggest "Never expiries"
- Now API key has been generated successfully copy the key and save it into your local instance and latter you won’t be able to view to fully and hence you need to regenerate if you lost it
Supported Features
| Create | Terminate | Suspend | UnSuspend | Change Password | Metrics | Power On | Power Off | Reboot | Reinstall | Rescue On | Rescue Off | Reset Hostname | Sync VPS Info |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| No | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
Installing and Activating Module in CE
- Download the module from https://secure.whmcsmodule.net
- Extract and upload the HostingerVPS folder to CE/plugins/servers
- Login to your Clientexec admin and navigate to Settings > Products > Servers > Add Server, and fill in the forms:
| Field Name | Description |
|---|---|
| Server Name | Friendly name, How you will see it inside ClientExec. |
| Hostname | Server Hostname |
| Shared IP | 0.0.0.0 |
| Plugin | HostingerVPS |
| API Key | Hostinger API key |
| VM Password Custom Field | Enter the name of the package custom field that will hold the root password. (see below) |
| VM Rescue Custom Field | Enter the name of the package custom field that will hold the VM Rescue. (see below) |
| VM Hostname Custom Field | Enter the name of the package custom field that will hold the VM hostname. (see below) |
| VM MainIp Custom Field | Enter the name of the package custom field that will hold the Main IPv4 Address. (see below) |
| VM IPv6 Custom Field | Enter the name of the package custom field that will hold the IPv6 Address. (see below) |
| VM Operating System Custom Field | Enter the name of the package custom field that will hold the VM Operating System. (see below) |
| VM Disk Custom Field | Enter the name of the package custom field that will hold the VM Disk Custom. (see below) |
| VM CPU Custom Field | Enter the name of the package custom field that will hold the VM CPU. (see below) |
| VM RAM Custom Field | Enter the name of the package custom field that will hold the VM RAM. (see below) |
| VM Username Custom Field | Enter the name of the package custom field that will hold the VM Username. (see below) |
| VM Bandwidth Custom Field | Enter the name of the package custom field that will hold the VM Bandwidth. (see below) |
| VM Status Custom Field | Enter the name of the package custom field that will hold the VM Status. (see below) |
| VM Location Custom Field | Enter the name of the package custom field that will hold the VM Location. (see below) |
Click save changes, and then navigate back to the server and click Test Connection to ensure it is working.
Configuring Custom fields
Once you have set up a server, you will need to set up the five custom fields. To do so, log into your Clientexec Admin Area and navigate to Settings > Products > Custom Fields > Add Custom Field.
| Field Name | Description | Field Type | Show in admin lists | Show in portal lists |
|---|---|---|---|---|
| VM Password | The name you set for the VM Password Custom Field | Password | Yes | Yes |
| VM Hostname | The name you set for the VM Hostname Custom Field | Text Field | Yes | Yes |
| VM MainIp | The name you set for the VM MainIp Custom Field | Text Field | Yes | Yes |
| VM IPv6 | The name you set for the VM IPv6 Custom Field | Text Field | Yes | Yes |
| VM Operating System | The name you set for the VM Operating System Custom Field | Text Field | Yes | Yes |
| VM Disk | The name you set for the VM Disk Custom Custom Field | Text Field | Yes | Yes |
| VM CPU | The name you set for the VM CPU Custom Field | Text Field | Yes | Yes |
| VM RAM | The name you set for the VM RAM Custom Field | Text Field | Yes | Yes |
| VM Username | The name you set for the VM Username Custom Field | Text Field | Yes | Yes |
| VM Rescue | The name you set for the VM Rescue Custom Field | Text Field | Yes | Yes |
| VM Bandwidth | The name you set for the VM Bandwidth Custom Field | Text Field | Yes | Yes |
| VM Status | The name you set for the VM Status Custom Field | Text Field | Yes | Yes |
| VM Location | The name you set for the VM Location Custom Field | Text Field | Yes | Yes |
Creating Products
-
Navigate to Settings **> **Products **> **Products. - Create a new Product Group for your HostingerVPS server products, and make sure the type is Hosting. Also add the custom fields you created to the product group. (if you already have a product group, edit it to add the custom fields).
- Create a new product under your product group. Add descriptions and prices that you want to charge.
- Once you save changes, navigate to the Advanced & Plugin Settings tab and select your HostingerVPS server. Fill in the fields options for your server (such as the Package name on the server that matches the package in Clientexec).
- Repeat steps 3 and 4 to add additional products.