Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

...

  1. If the module is included in your HostBill edition you can download it from your client portal.
  2. 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.
  3. Once you download the module extract it in the main HostBill directory.
  4. Go to Settings → Modules → Hosting Modules, find and activate hestiacp module 

Configuring API access in Hestia CP

...

  1. Enable Connection via API
    1. Go to Server Settings > Configure > Security > System.
    2. Set the following options:
      1. Enable API Access: Enabled for admin
      2. Enable Legacy API Access: No
      3. Allowed IP Addresses for API: Enter your HostBill IP Address.
  2. Create an API Access Key
    1. Navigate to your System Administrator Account under Users
    2. Go to Access Keys and click Add Access Key.
    3. Set Permissions to: Billing.
  3. Edit the Default Billing Profile
    1. The v-list-user-packages command may be missing by default in your API key billing profile. To add it, execute the following command:

      Code Block
      languagebash
      sed -i "/^COMMANDS=/ s/'/'v-list-user-packages,/" /usr/local/hestia/data/ api/billing



Connecting HostBill with Hestia CP

...

  1. Proceed to Settings → Apps → Add new App
  2. From Applications list select Hestia CP
  3. Enter:
    • Name - Name for this connection
    • Hostname - HestiaCP installation hostname
    • Username - HestiaCP username
    • Password - HestiaCP password
    • API Port - your Hestia CP api port, defaults to 8083
    • API Access Code - API access code. When its provided, the username and password combination is not required/used
    • API Secret - API secret code. When its provided, the username and password combination is not required/used

      4. Verify entered credentials by clicking Test Connection to check if HostBill can connect. 
      5. Save Changes


Info
titleAPI 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

...

  1. In HostBill go to Settings → Products & Services, and Add new order page
  2. From order types select Shared Hosting
  3. Enter your orderpage name, select orderpage template. Save Changes
  4. Add new product in the new orderpage. Provide product name and setup price and then Save Changes.
  5. In product configuration section proceed to Connect with App, select Hestia CP and App server created in previous steps.
  6. Press the Get values ​​from server button to get available values ​​for configuration.
  7. Fill the fields:
    • Hestia Plan

  8. 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