Introducing the WHMCS plugin
WHMCS is a client management, billing & support solution for online businesses. The SiteHost registrar module integrates with WHMCS and allows registration, renewal, and transfer of domains, and management of DNS. To get started using the plugin, you will need a working installation of WHMCS, the registrar module, and a valid API key.
The registrar module is distributed as a compressed folder that must be copied over to your WHMCS installation.
Download the registrar module into a temporary directory.
Ensure that the MD5 checksum of the tar file is correct.
Decompress the module and copy the sitehost/ folder into the folder /path/to/whmcs/modules/registrars in your WHMCS installation.
The Api key is used to connect your WHMCS installation to your SiteHost account.
Send an email to firstname.lastname@example.org. Include your SiteHost username (the same username used to log in to the SiteHost Control Panel), and the IP address where you are running your WHMCS installation.
SiteHost support will generate an Api key and email it to you.
Set up the SiteHost domain registrar
When the module folder has been copied over, the SiteHost registrar module must be enabled and configured within WHMCS.
Log into your WHMCS Administration area (e.g.: http://example.com/whmcs/admin)
In the "Setup" menu, click "Domain Registrars". (see Figure 1)
Find the "Sitehost" registrar and select the Activate Button.
Copy the API key into the text box and click "Save Changes". (see Figure 2)
The module has a script that should be run daily to ensure that expiry dates, next due dates and domain statuses are always up to date inside your WHMCS system. The command to run is displayed under the Domain Synchronisation Cron heading. Our knowledge base article contains information on how to set up a cron job to run on a SiteHost server, otherwise refer to the control panel or server documentation for the server running WHMCS.
In order to use the DNS feature, we recommend setting the default name servers as the official SiteHost name servers which can be found in this article: (Setup > General Settings > Domains)
WHMCS also have instructions on how to configure a registrar.
Set up domain pricing
Prices must be set for registration, renewal, and transfer for all the TLD's that you want to offer clients.
Log into your WHMCS Administration area (http://example.com/whmcs/admin)
Go to Setup > Products/Services > Domain Pricing.
Type any TLDs that you wish to allow registration/transfer/renewals in the boxes on the left (type a full-stop before the TLD eg, .co.nz - not co.nz). Click the checkbox for EPP code to turn it on (the UDAI / EPP code / Transfer Secret is required for domain transfers). EPP is another name for UDAI or Auth code. Click the checkbox under DNS Management if you would like to allow clients the ability to update their DNS records. If you would like domains to be automatically registered as soon as the invoice for the domain has been paid, select "SiteHost" from the Auto Registration select box. (see Figure 3)
Click "Save Changes"
Select "Open pricing" for the TLD you want to alter. Enter the prices for the operation type and term into the pricing matrix. (see Figure 4)
WHMCS also have instructions on how to configure domain pricing.