Super Admin's Panel

Creating Addons For Shared Hosting Products on FHBRS

Very importantly. Before you can create a product for Shared Hosting. The category name must be called Shared Hosting (case sensitive). This is pre-designed so that it will show the UI designed for managing shared hosting with Cpanel if you are offering your shared hosting with Cpanel. It looks like this below;

 

 

All orders with the Category Name called Shared Hosting will show that UI when the user clicks the View Order Details.

 

Now let’s create the addon. To understand what Addons are, please Click Here.  With some graphical illustration, this is how to create an addon for a shared hosting account. Since there is a Pre-Designed UI for managing the Shared Hosting account with CPanel, you would need to follow the steps below when creating the addon for the Shared Hosting.

 

Navigate to Products & Modules and then click on Addons.

Click on the Add New Addon to add a new Addon. Let’s walk through an example and pre-designed values that MUST be used for a Shared Hosting category product.

 

 

Let’s create a new Addon, when you click the Add New Addon button, your display should look like this;

Name: This name should be what you can remember to identify the Addon so that when you are creating a product you would be able to identify its settings. For this example, we want to associate it to the first shared hosting of a product name called Starter Shared hosting, so we want to call this addon Starter CPANEL/WHM. This example we are using CPANEL/WHM just to remember that this addon is for CPANEL. This can be any name, it can be the product name or whatever name you want to call it.

 

Cols & Vals re-explained: As was explained Here, Cols and Vals are very important identifiers which are directly used for a particular purpose in achieving a Goal. So Columns which are identified as cols and values identified as vals are for storing values which would later be used when setting up the module so that automatic delivery can be possible.

In this case for Shared Hosting, you must insert some predefined cols and also follow the guide to modify their values to what you want.

Since the module for CPANEL/WHM shared hosting accounts would be using https://api.docs.cpanel.net/openapi/whm/operation/addpkg/ we have the pre-defined structure explained below.

 

Col1: name

Val1: Basic Package

Name here is created as a Package in your WHM. So whatever name you want to call it, based on the explanation given, col1 must be called name and val1 can be whatever you wish the name to be. Example, Basic Package.

 

Col2: quota

Val2: unlimited

This is the Diskspace you wish this package should have. Allowed values here are unlimited, 0, 10240, or any number in MB. If you modify your value to an unaccepted value it would submit but it won’t work correctly.

 

Col3: ip

Val3: n

This is checking if the account created using this Addon should have a dedicated IP or not. y for Yes while n for No.

 

Col4: cgi

Val4: 1

Whether CGI access is enabled for the account. 1 for enabled while 0 for disabled.

 

Col5: maxftp

Val5: unlimited

The hosting plan’s maximum number of FTP accounts. Allowed values here are unlimited, 0, 10240, or any number in MB. If you modify your value to an un accepted value it would submit but it won’t work correctly

 

Col6: maxsql

Val6: unlimited

The hosting plan’s maximum number of each available type of SQL database. The hosting plan’s maximum number of FTP accounts. Allowed values here are unlimited, 0, 10240, or any number in MB. If you modify your value to an un accepted value it would submit but it won’t work correctly

 

 

Col7: maxpop

Val7: unlimited

The hosting plan’s maximum number of email accounts. Allowed values here are unlimited, 0, 10240, or any number in MB. If you modify your value to an un accepted value it would submit but it won’t work correctly

 

 

Col8: maxlists

Val8: unlimited

The hosting plan’s maximum number of mailing lists. Allowed values here are unlimited, 0, 10240, or any number in MB. If you modify your value to an un accepted value it would submit but it won’t work correctly

 

 

Col9: maxsub

Val9: unlimited

The hosting plan’s maximum number of subdomains. Allowed values here are unlimited, 0, 10240, or any number in MB. If you modify your value to an un accepted value it would submit but it won’t work correctly

 

 

Col10: maxpark

Val10: unlimited

The hosting plan’s maximum number of parked domains (aliases). Allowed values here are unlimited, 0, 10240, or any number in MB. If you modify your value to an un accepted value it would submit but it won’t work correctly

 

 

Col11: maxaddon

Val11: unlimited

The hosting plan’s maximum number of addon domains. Allowed values here are unlimited, 0, 10240, or any number in MB. If you modify your value to an un accepted value it would submit but it won’t work correctly

 

 

Col12: hasshell

Val12: 0

Whether the hosting plan allows shell access. 1 for enabled while 0 for disable

 

 

Col13: bwlimit

Val13: unlimited

The hosting plan’s maximum bandwidth use, in megabytes (MB). Allowed values here are unlimited, 0, 10240, or any number in MB. If you modify your value to an un accepted value it would submit but it won’t work correctly

 

Col14: max_emailacct_quota

Val14: unlimited

The hosting plan’s maximum email account quota size, in megabytes (MB). Allowed values here are unlimited, 0, 10240, or any number in MB. If you modify your value to an un accepted value it would submit but it won’t work correctly

 

 

Col15: max_email_per_hour

Val15: unlimited

The maximum number of emails that the hosting plan allows users to send in one hour. Allowed values here are unlimited, 0, 10240, or any number in MB. If you modify your value to an un accepted value it would submit but it won’t work correctly

 

 

Col16: max_defer_fail_percentage

Val16: unlimited

The percentage of failed or deferred email messages that the hosting plan allows users to send per hour before outgoing mail is rate-limited. Max value here is 100.

 

Col17 – Val17 to Col21 – Val21 is free, you can place some additional feature as seen here

 

Col22: backup

Val22: 1

If you want to enable backup for this account. 1 for Yes 0 for No

 

Col23: whm_ip

Val23: 102.000.000.00

The WHM server IP address

 

Col24: whm_username

Val24: root

The WHM Username

 

 

Col25: whm_password

Val25: XXXXXXXXXXXX

The WHM password

 

 

Col26: ns1

Val26: ns1.nameserver.domain

The firstname nameserver which the hosting would be attached to

 

 

Col27: ns2

Val27: ns2.nameserver.domain

The second nameserver which the hosting would be attached to

 

Col28: ns3

Val28: ns3.nameserver.domain

The third nameserver which the hosting would be attached to

 

Col29: ns4

Val29: ns4.nameserver.domain

The fourth nameserver which the hosting would be attached to

 

Col30: host_name

Val30: https://host.the-domain.com

The hostname of the server

 

Col31: os_type

Val31: Linux

The Operating sytem type

 

Col32: os

Val32: CentOS 7

The Operating sytem

 

Col32: server_location

Val32: USA

The server location

 

Related Articles