Hestia CP
Overview
Hestia CP is a popular and convenient open-source web server control panel. With the HostBill module you can automatically sell Hestia CP Shared Hosting. Easily set up your product with multitude of product configuration and automation options and let HostBill automatically handle billing, invoicing, creating the account and managing it. Create automation rules for account suspension, unsuspension, termination and upgrading and downgrading the resources. Manage the account from the admin panel and control which functions should be available for clients. Allow customers to display login details, login to HestiaCP or change password from client area.
Activating the module
If the module is included in your HostBill edition you can download it from your client portal.
If the module is not included in your HostBill edition you can purchase it from our marketplace and then download it from the client area.
Once you download the module extract it in the main HostBill directory.
Go to Settings → Modules → Hosting Modules, find and activate hestiacp module
Configuring API access in Hestia CP
Enable Connection via API
Go to Server Settings > Configure > Security > System.
Set the following options:
Enable API Access: Enabled for admin
Enable Legacy API Access: No
Allowed IP Addresses for API: Enter your HostBill IP Address.
Create an API Access Key
Navigate to your System Administrator Account under Users
Go to Access Keys and click Add Access Key.
Set Permissions to: Billing.
Edit the Default Billing Profile
The
v-list-user-packagescommand may be missing by default in your API key billing profile. To add it, execute the following command:sed -i "/^COMMANDS=/ s/'/'v-list-user-packages,/" /usr/local/hestia/data/ api/billing
Connecting HostBill with Hestia CP
Proceed to Settings → Apps → Add new App
From Applications list select Hestia CP
Enter:
4. Verify entered credentials by clicking Test Connection to check if HostBill can connect.
5. Save Changes
API calls used
Note that module makes use of API calls below, as such your API access / user needs to be allowed in HestiaCP for following:
- v-add-user
- v-add-domain
- v-suspend-user
- v-unsuspend-user
- v-delete-user
- v-change-user-password
- v-list-user-packages
- v-change-user-package
Adding Hestia CP product
In HostBill go to Settings → Products & Services, and Add new order page
From order types select Shared Hosting
Enter your orderpage name, select orderpage template. Save Changes
Add new product in the new orderpage. Provide product name and setup price and then Save Changes.
In product configuration section proceed to Connect with App, select Hestia CP and App server created in previous steps.
Press the Get values from server button to get available values for configuration.
Fill the fields:
Hestia Plan
Save changes.
For more generic product configuration details including price, automation, emails settings refer to Product Configuration article.
Configuring Client Functions
In Products & Services → Your Order Page → Your Product → Client Functions you can control what features customer will have access to in client portal, by clicking Enable/Disable next to the given option.
Use Edit button to adjust function appearance in the client portal.
For Spanel you can enable a number of Client Functions