Integrating FOSSBilling with HestiaCP
Configuring HestiaCP
Before you can setup the HestiaCP server manager, you need to first whitelist your FOSSBilling server’s IP address inside of HestiaCP, and create a access key to use. Here is their documentation for the whitelisting the IP address. here is where they talk about creating the access key.
A note on permissions: When creating the access key inside HestiaCP, you only need to assign “billing” permissions for the key you create.
Adding a HestiaCP server to FOSSBilling
- Login to your admin panel.
- Go to
System
->Hosting plans and servers
from within the navigation bar. - Go to the “New server” tab and fill out the name, hostname, and IP address, and nameservers for your server.
- Select the
Server manager
drop down and select HestiaCP from the drop down. - Enter the access key ID and secret key you created within HestiaCP.
- Click the add server button to save your settings and add the server to FOSSBilling.
Hosting plans with HestiaCP and FOSSBilling
Due to technical limitations between FOSSBilling and HestiaCP, FOSSBilling cannot create hosting packages automatically. Because of this, you should first create the hosting plans (packages) you want to use from withing HestiaCP and define the limitations and capabilities you want it to have there, as FOSSBilling will be unable to change or define them.
Once you’ve created the package within HestiaCP, you should then create it within FOSSBilling, ensuring that the package name matches exactly between the two. If it doesn’t match, FOSSBilling will be unable to create accounts with that package.