|Table of Contents
About CentOS WebPanel
CentOS WebPanel or CWP is a free and open source web hosting panel. Learn more about CentOS WebPanel on their website at http://centos-webpanel.com/.
New API Key
As of Blesta v4.8 (CWP module v2.0) a newer, more stable API provided by CWP is being used. This means that when you upgrade Blesta you will need to create a new API Key under CWP Settings > API Manager, since the old one will no longer work.
This module supports the following management features within the client area:
- Unblock IPs in the firewall
Firewall Management Removed
As of Blesta v4.8 (CWP module v2.0) firewall management is no longer accessible through Blesta. This is because the module was updated to use a newer, more stable API provided by CWP which does not support firewall management.
Installing CentOS WebPanel
To install the CentOS WebPanel module, visit [Settings] > [Company] > [Modules] > Available, and click the "Install" button for CentOS WebPanel.
A message will be displayed, indicating that the module was successfully installed. Then click the "Add Server" button.
Enter the details for your CentOS WebPanel server.
|Enter a label for this CentOS WebPanel server, it can be anything you like.
|Enter the FQDN hostname for your CentOS WebPanel server, ie "server1.domain.com".
Enter your CWP server API key, found under CWP Settings > API Manager. Under "Api access management" you can view and add API credentials.
|Use SSL when connecting to the API
|Check this option to use SSL for all API requests to your CentOS WebPanel server. This is highly recommended.
|Enter the maximum number of accounts that should be added to this CentOS WebPanel server.
|Enter the name servers that should be used for this server. These will be available to the package welcome email to the client.
|Enter any notes that pertain to this server for future reference.
After filling out these options, click "Add Server" to add your CentOS WebPanel server.
Server groups are useful for categorizing CentOS WebPanel servers. When creating a Package, a specific server, or a server group may be selected for provisioning. Blesta will automatically select a CentOS WebPanel server to provision with when a server group is chosen.
To add a server group, from the CentOS WebPanel overview at [Settings] > [Company] > [Modules] > CentOS WebPanel, click "Add Server Group", then enter the details.
Enter the name for this server group.
|Choose how servers in this group will be selected for provisioning. Currently, first non-full server is the only add order.
|Select servers under "Available Servers" and click to move them to the left column to add them to the group.
|Force Server Limits
|Enforces hard limits so that the count of a Server never exceeds its limit.
Packages define the pricing, welcome email, module and more. Packages can be assigned to Package Groups, and added to Order Forms. To create a Package, visit [Packages] > Browse, and click the "Create Package" button.
Creating a Package consists of several sections:
The Basic section consists of the following options:
|Enter the name of this Package, it will be visible wherever services are listed and on any order forms. A separate name can be defined for each language in the system.
|Enter a Description for this Package. HTML is allowed, and descriptions appear on order forms. A separate name can be defined for each language in the system.
|"Active" is the default, "Inactive", and "Restricted" are also available.
|If this Package has a limited quantity available, enter the quantity, or leave it as "Unlimited".
|Use renewal prices for package upgrades
|When enabled, upgrading to this package will use renewal prices if they are set. The same will apply to any configurable options that are altered in the upgrade. The regular price will be used if this setting is disabled.
|A Configurable Option Group may be selected if previously created, but this module does not support configurable options during provisioning.
|Select "CentOS WebPanel" for the module.
The Module Options section consists of the following options, which are specific to CentOS WebPanel:
|Select "Any" if you wish to specify a specific server, or select the Server Group to provision from. Selecting a group means that accounts will be provisioned from the group. Selecting a group is recommended.
|If "Any" is selected above, select the server this package will use to provision accounts.
|The ID of the package to use in CentOS WebPanel
|The account inodes limit
|The maximum number of files that can host the account
|The maximum number of process that can run simultaneously
|Enter the term for the desired pricing option. For example, if you wish to create a 3 month pricing option, enter 3 here.
|Select the period for this pricing option. "Day", "Week", "Month", "Year", and "One time" are options. The client will be invoiced every "term period", for example every 3 months if 3 is entered for term, and Month is selected for period.
|Select the currency this pricing option is available for.
|Enter the price for this pricing option.
|If enabled, the renewal price will be used for service renewals and possibly prorated service changes, depending on the setting above.
|If there is a setup fee, enter it here.
|If there is a fee to cancel early, enter it here.
Click the "Add Additional Price" to add more pricing options. It's common for people to create 1 Month, 3 Month, 6 Month, and 1 Year price options. There are many possible combinations.
The "Tags" section describes tags that may be used in the welcome email. The welcome email content is inserted into the "Service Creation" email template under [Settings] > [Company] > [Emails] > Service Creation. Only details unique to this service should be entered into the welcome email section for the package.
This sample email could be used in the Package Welcome Email section to help you get started. Be sure to enter content for your welcome email in both the HTML and Text sections.
When creating or editing a package that uses this module, the following tags will be available:
|The host name of the server that the service was provisioned on
|An array of available name servers for this module
Array elements must be looped over in the email template. See below for an example.
|The package meta type
|e.g. "standard", "user", "reseller", etc.
|The package meta package name
|The package meta access control list
|The service field for the domain of the server created by CentOS WebPanel
|The service field for the CentOS WebPanel account username
|The service field for the CentOS WebPanel account password
CentOS Web Panel API
CentOS Web Panel may require additional steps in order to allow access via the API from your Blesta installation. From https://www.blesta.com/forums/index.php?/topic/12631-how-to-configure-api-and-packages-for-centos-web-panel/ you may need to do the following:
- Log into Centos Web Panel as Root
- Open file manager and navigate to /usr/local/cwp/.conf/
- In the above directory create 2 new files (they most likely do not exist)
- api_key.conf (open this file and copy and paste just the API key created in CWP into this file then save it)
- api_allowed.conf (open this file and paste just the IP adress of the webserver where Blesta is installed...if blesta has its own IP address then i would imagine one should use that ip address)