Configuring CWP
Section titled “Configuring CWP”FOSSBilling integrates with CWP (Control-WebPanel) using its API. Here's how to set up the CWP API:
- Log in to your CWP server and navigate to CWP Settings → API Manager
- Click Allow new API access
- Give the API key a friendly name (like "FOSSBilling"), generate an API key, and enter your FOSSBilling server IP in the IP Origin field
- You can enter
%to allow any IP, but this isn't recommended for security reasons
- You can enter
- Leave Format Request set to
JSON - Assign these permissions to the API key (as of FOSSBilling 0.4.0):
- Account:
Add,Update,Delete,List,Suspend,Unsuspend - Account Details:
List - Account Package Change:
Update - Change Password:
Update
- Account:
- Copy the API key and save your changes
For more detail, see the CWP API documentation.
Adding a CWP server to FOSSBilling
Section titled “Adding a CWP server to FOSSBilling”- Log in to your FOSSBilling admin panel
- Go to System → Hosting plans and servers
- Switch to the New server tab
- Fill in the name, hostname, IP address, and nameservers for your server
- Select CWP from the Server manager dropdown
- Enter the API key you created earlier
- Click Add server to save
Hosting plans with CWP and FOSSBilling
Section titled “Hosting plans with CWP and FOSSBilling”Because of CWP API limitations, FOSSBilling cannot create hosting packages for you automatically. You need to:
- Create your hosting plans (packages) directly in CWP first, setting all limits and capabilities there
- Create matching plans in FOSSBilling with the exact same name
If the names don't match exactly, FOSSBilling won't be able to create accounts with that package.