Configuration Of FOSSBilling‐CyberPanel - NerdbyteIO/FOSSBilling-CyberPanel GitHub Wiki

Configuring the FOSSBilling-CyberPanel Server Module

Custom Package Values - Version One (1.x) & Version Two (2.x)

  • ACL: Default is set to user/reseller based on the selected package; it can be overridden by specifying a custom ACL value in the package.

Version One (1.x)

This version is wrote using the following API Docs

  • Verify that API access is enabled for the administrator or reseller you are configuring with FOSSBilling. How to Enable CyberPanel API
  • Configure the server IP, hostname, name servers, and other relevant settings.
  • Enter the username and password for the administrator or reseller account used for API requests.
  • When creating hosting packages in FOSSBilling, ensure that you use the same name that the hosting package is in CyberPanel.
    • Example: admin_ProPlan in CyberPanel will also be admin_ProPlan in FOSSBilling.

Version Two (2.x)

This version is wrote using the following Cloud API Docs

[!IMPORTANT] Due to API limitations, this version only supports the default administrator account username, admin.

  • Verify that API access is enabled for the administrator or reseller being configured with FOSSBilling. For instructions, see How to Enable CyberPanel API.

  • Configure the server's IP address, hostname, name servers, and other relevant settings.

  • Enter the username, which should be admin.

  • Retrieve your API token using one of two methods:

    • If you have root access to the CyberPanel server, you can obtain the token via the command line. Execute the following SQL query, ensuring to replace $CYBERPANEL-DBNAME with your actual CyberPanel database name:
    mysql -e "SELECT token FROM $CYBERPANEL-DBNAME.loginSystem_administrator WHERE username='admin' \G"
    

    The output will appear like below:

    +------------------------------------------------------------------------+
    | token                                                                  |
    +------------------------------------------------------------------------+
    | Basic 1334b8120fee23669888fe4409d23a0a0fe63845a1e70811be2f91af1be000a5 |
    +------------------------------------------------------------------------+
    
    • Alternatively, you can retrieve the token using phpMyAdmin from the loginSystem_administrator table. Ensure that "BASIC" is excluded from the API Token field in FOSSBilling.