WHMCS module
This guide will help you install, configure, and manage the BaseKit plugin for WHMCs.
Prerequisites & assumptions
To use this guide, you will need:
- A copy of BaseKit’s Plugin for WHMCs (a zip archive)
- A server running WHMCs, including the correct credentials and know-how to upload files
This guide makes the following assumptions:
- The plugin file is called
BaseKitWHMCsPlugin.zip
(as this guide supports multiple version of the plugin, i.e.BaseKitWHMCsPlugin-6.0.zip
) - Your server running WHMCs will be referenced as
whmcs-instance
- On your server, WHMCs is installed to the
/var/www/whmcs
directory
Upload
We recommend you use any secure method you feel comfortable with to upload the plugin file to the WHMCs installation directory on your server. The following example command is to upload via SSH:
scp BaseKitWHMCsPlugin.zip whmcs-instance:/var/www/whmcs/BaseKitWHMCsPlugin.zip
Installation
Log into your WHMCs server, go to the WHMCs installation directory, and unzip the contents of the plugin file. The following example commands do this via SSH and the unzip command:
Under the WHMCs root directory you should now see modules/servers/BaseKit
and modules/servers/BaseKitAddon
directories
Permissions
These commands require that you have the permissions to create files in the WHMCs installation directory, it is
recommended that you use the credentials for the correct user rather than relying on sudo
.
Commands
If you are unable to execute remote commands on your WHMCs server, you can unzip the plugin file on your computer and manually upload the resulting modules directory to the WHMCs installation directory.
Configuration
- Log in to the administrator area of WHMCs
- Navigate to System Settings → Products/Services → Products/Services
- Create a new Group. You can call this BaseKit, Website builder etc
- Create a new Product using the group you just created. This should be named based on the BaseKit package it will contain
- On the Details tab tick Require Domain
- Switch to the Module Settings tab, then select BaseKit as the Module Name
- Fill in the Connection configuration
- You must click Save before continuing
- Next, fill in the Product configuration – you will get connection errors if you do this before filling in the Connection configuration
Client Area Integration
Goto Setup → Products/Services → Products/Services → BaseKit Plugin → Module Settings → Integration Code, follow the instructions for manually editing WHMCs client-area templates.
Connection configuration
Important: If you have more than one Subscription package then you will need to create an instance of the BaseKit module for each package. The settings are the same except the Account Package Ref.
- BrandDomain, SubscriptionPackageRef, TrialPackageRef will all be supplied by the BaseKit delivery team. They need to replace the placeholders below:
- Base URL: https://rest.BrandDomain
- Rest api credentials are supplied by BaseKit
- Brand Ref: Supplied by BaseKit
- Account Package Ref: SubscriptionPackageRef
- Account Free Package: TrialPackageRef
- Reseller Ref: leave this blank
- Language Code: Choose whichever language you want your customers to default to
- Site Type: Responsive
- Login URL: https://flow.BrandDomain/login
- Username Prefix: enter your company name here, no spaces
- Now ensure you click to test the connection and that it is successful
Product configuration
- Please select Responsive for the Site Type
- Save the Product configuration setting
- Click the Generate Missing Custom Fields button (if it appears)
- A useful option to select is Automatically setup the product when you manually accept a pending order, though it is not required
BaseKit Add-On package configuration (e.g. Go Connect Bookings)
- Log in to the administrator area of WHMCs
- Navigate to System Settings → Products/Services → Product Addons
- Click Add New Addon
- Give the addon package a name, choose Add-On Feature and select the BaseKitAddon module from the dropdown
- Switch to the Module Settings tab, then select BaseKitAddon as the Module Name
- Enter the BaseKit add-on package ref into the AddonID field
- Switch to the Applicable Products tab and select the existing BaseKit packages you want to offer this add-on for
Gotchas
Domain registration
On ordering a BaseKit package through WHMCs a domain name must be specified with the order.
Domain registration must be enabled on WHMCs for this to appear in the ordering process.
To enable this navigate to System Settings/General Settings and click on the Domains tab. Ensure all 3 Domain Regsitration Options are checked:
- Allow clients to register domains with you
- Allow clients to transfer a domain to you
- Allow clients to use their own domain
Payment
Before clients can use the BaseKit plugin to purchase services, you must ensure you have at least one payment gateway enabled in System Settings → Payments → Payment Gateways.
Language
If you see text on the module settings page similar to $_LANG['pages']['configuration']
instead of actual sentences,
you need to rebuild the language cache by:
- Navigate to Setup → General Settings and select the Localisation tab
- Select a Default Country that is anything but the currently selected one, then save
The language cache has now been rebuilt. If the country you selected is not the one you want, you can switch back to the correct one immediately.
The BaseKit plugin for WHMCs only provides translations for English. You must either make sure that your default
language is set to English in Setup → General Settings → Localisation, or rename the file english.php
(in the /var/www/whmcs/modules/servers/BaseKit/langs
directory) to the name of your desired language (for example,
turkish.php
).
Connection problems
Although unlikely, SELinux or the server’s firewall may be blocking ports - contact your system administrator to check this.
Need help?
Our teams are always on hand to assist you. For commercial enquires contact partners@basekit.com, and for technical questions integrations@basekit.com.