Versions Compared

Key

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

...

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.

Sample Email

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.

No Format
Your hosting account details are below!

Domain: {service.centoswebpanel_domain}
Username: {service.centoswebpanel_username}
Password: {service.centoswebpanel_password}

To log into your control panel please visit https://{module.host_name}:2083.
Please update your name servers as soon as possible to the following:

{% for name_server in module.name_servers %}
Name server: {name_server}{% endfor %}

Thank you for your business

When creating or editing a package that uses this module, the following tags will be available:

TagsDescriptionNotes
{module.host_name}The host name of the server that the service was provisioned one.g. "domain.com"
{module.name_servers}An array of available name servers for this module

Array elements must be looped over in the email template. See below for an example.

{package.type}The package meta typee.g. "standard", "user", "reseller", etc.
{package.package}The package meta package namee.g. "Bronze"
{package.acl}The package meta access control list
{service.centoswebpanel_domain}The service field for the domain of the server created by CentOS WebPanel
{service.centoswebpanel_username}The service field for the CentOS WebPanel account username
{service.centoswebpanel_password}The service field for the CentOS WebPanel account password


CentOS Web Panel API

The API for CWP listens on https port 2031

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:

  1. Log into Centos Web Panel as Root
  2. Open file manager and navigate to /usr/local/cwp/.conf/
  3. In the above directory create 2 new files (they most likely do not exist)
    1. api_key.conf (open this file and copy and paste just the API key created in CWP into this file then save it)
    2. 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)

Common Errors

  • Q: When creating a service I get the error "An internal error occurred, or the server did not respond to the request." but the account is created on my CWP server
    • A: Make sure you provided a correct and valid Package ID on the Package Module tab. CWP returns an unusual response if this Package ID is not correct.