Do you have DirectAdmin installed and configured but missing integration into WHMCS?. The DirectAdmin Extended For WHMCS gives you the automation needed when provisioning web hosting accounts and managing them. There is no need for a customer to leave your website, because every commonly used DirectAdmin feature will be accessible from the WHMCS client area.

This module is created to optimize all supervisory tasks over files, FTP accounts, databases, email accounts, backups, DNS records, domains, Let’s Encrypt, inbuilt Softaculous, application installers, enabling your customers to easily add, edit, delete, backup and restore hundreds of different web applications. The module can also be integrated with WordPress Manager For WHMCS for easy WordPress installation on the website.

In this post we perform the installation, configuration and demonstrate how to use DirectAdmin Extended For WHMCS to make the service delivery to your customers better.

1. Check PHP Version

Check the current PHP version in your WHMCS. This can be done by navigating to ‘Utilities’ → ‘System’ → ‘PHP Info’.

DirectAdmin Extended For WHMCS 00

It will give you system information including PHP version. Validate the output against module changelog to see its support.

DirectAdmin Extended For WHMCS 01

2. Install DirectAdmin Extended For WHMCS module

Log in to ModulesGarden Client Area and navigate to Products. Find “DirectAdmin Extended For WHMCS” on the list. Use the “Download” tab to download the latest version of the module.

Once downloaded, extract the archive

unzip <filename>.zip

You will get two folders – addons and servers. This will be moved later to WHMCS web root directory.

DirectAdmin Extended For WHMCS 02

Rename license_RENAME.php to license.php before you can run DirectAdmin Extended For WHMCS for the first time

mv modules/servers/directadminExtended/license_RENAME.php modules/servers/directadminExtended/license.php

Edit license file and input license key from purchase.

$ vim modules/servers/directadminExtended/license.php
$directadmin_extended_licensekey="YOUR-LICENSE-KEY";

Get your license key from ModulesGarden client area → ‘My Products‘. Enter obtained license key between quotation marks.

Also set the permissions of the two ‘storage’ folders as recursively writable.

chmod -R 0777 modules/addons/DirectAdminExtended/storage
chmod -R 0777 modules/servers/directadminExtended/storage

Move the two directories inside ‘addons’ and ‘servers’ to WHMCS modules and servers path.

mv modules/addons/DirectAdminExtended/ /whcms_path/modules/addons/
mv modules/servers/directadminExtended/ /whcms_path/modules/servers/

Update permissions of the directory to your webserver user.

# Nginx web server
## RHEL based systems
sudo chown -R nginx:nginx /whcms_path/
## Debian based systems
sudo chown -R www-data:www-data /whcms_path/

# Apache web server
## RHEL based systems
sudo chown -R apache:apache /whcms_path/
## Debian based systems
sudo chown -R www-data:www-data /whcms_path/

3. Activate DirectAdmin Extended For WHMCS

Log in to your WHMCS admin area and navigate to ‘System Settings’ 

DirectAdmin Extended For WHMCS 03

Search for ‘Addon Modules’ and click on it.

DirectAdmin Extended For WHMCS 04

Afterwards, locate ‘DirectAdmin Extended’ and press the ‘Activate’ button.

DirectAdmin Extended For WHMCS 05

Click ‘Configure’ and tick all boxes for Access Control.

DirectAdmin Extended For WHMCS 06

4. Add DirectAdmin Server to WHMCS

Next we can add our DirectAdmin server to WHMCS. This can be done under ‘System Settings’, search for ‘Servers‘ and click it.

DirectAdmin Extended For WHMCS 07

Press the ‘Add New Server‘ to add DirectAdmin to WHMCS.

DirectAdmin Extended For WHMCS 08

Input your DirectAdmin Server details.

  • Name: Name used to identify the server
  • Hostname: DirectAdmin server hostname configured in your DNS server
  • IP address: DirectAdmin Server IP address
  • Primary nameserver: Nameserver that WHMCS will assign to clients
  • Secondary nameserver: Another that WHMCS will assign to clients
DirectAdmin Extended For WHMCS 09 3
  • Module: Choose DirectadminExtended from dropdown menu
  • Username: DirectAdmin login credentials of administrator or reseller account. Default is admin user
  • Password: The password of the user provided above

Once you’ve provided required values, hit “Test Connection” to validate connectivity.

DirectAdmin Extended For WHMCS 09 2

Save the changes to add the new server.

Create Server Group

A Server group enables us to add more than one DirectAdmin Server for use in WHMCS. Create DirectAdmin Server group by going to ‘System Settings’, search for ‘Servers‘ –> ‘Create New Group’.

DirectAdmin Extended For WHMCS 10

Give it a name, click on your the server previously created, press ‘Add‘ and then ‘Save Changes’.

DirectAdmin Extended For WHMCS 11

5. Create Product Group

To configure products, go to ‘System Settings‘ → ‘Products/Services‘.

DirectAdmin Extended For WHMCS 12

Fill as follows;

  • Input Product Group Name
  • Product Group Headline / Tagline (optional)
  • Order Form Template
DirectAdmin Extended For WHMCS 13

Click “Save Changes” when done to create product.

DirectAdmin Extended For WHMCS 14

6. Create Package on DirectAdmin

Login to your DirectAdmin web portal as administrator.

Directadmin create package 01

Search for “Create New Package” and click on it.

Directadmin create package 02

Create a website hosting package with limits as dictated by your pricing model.

Directadmin create package 03
Directadmin create package 04
Directadmin create package 05

7. Add Product on WHMCS

Once Product Group has been created, we can add the Product. The product that we create will be assigned to “DirectAdmin Extended“.

  • Product Type: We choose “Shared Hosting”
  • Product Group: The group we created earlier
  • Product Name: The name of the product visible to customers (display name)
  • Module: Choose “DirectAdmin Extended”
DirectAdmin Extended For WHMCS 15

In Details section, confirm settings and save changes.

DirectAdmin Extended For WHMCS 16

In pricing you can set pricing for the product.

DirectAdmin Extended For WHMCS 17

Inside modules area, pick “DirectAdmin Extended” and it’s assigned server group. For package choose one of the packages created in DirectAdmin portal.

DirectAdmin Extended For WHMCS 18

Other settings such as metric billing can be configured as well.

DirectAdmin Extended For WHMCS 19

If in the package you want to offer free domains, configure to your desired service offerings.

DirectAdmin Extended For WHMCS 20

Find the product link under “Links” and test product page.

DirectAdmin Extended For WHMCS 21

Test if it works correctly when accessing the product page as a client.

DirectAdmin Extended For WHMCS 22

References:

LEAVE A REPLY

Please enter your comment!
Please enter your name here