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’.

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

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.

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’

Search for ‘Addon Modules’ and click on it.

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

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

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.

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

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

- 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.

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’.

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

5. Create Product Group
To configure products, go to ‘System Settings‘ → ‘Products/Services‘.

Fill as follows;
- Input Product Group Name
- Product Group Headline / Tagline (optional)
- Order Form Template

Click “Save Changes” when done to create product.

6. Create Package on DirectAdmin
Login to your DirectAdmin web portal as administrator.

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

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



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”

In Details section, confirm settings and save changes.

In pricing you can set pricing for the product.

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

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

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

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

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

References: