Mar 28, 2019
Software 6
This guide will help you integrate your Softaculous installation with WHMCS to automate your web hosting business. This can only be configured with WHM servers and DirectAdmin servers currently.
Install the Hook in WHMCS
softaculous.php
and upload it to
/full_path_to/whmcs/includes/hooks/
softaculous_debug.php
to
/full_path_to/whmcs/includes/hooks/
softaculous_debug.php
from the hooks directory
after testingNote: The softaculous_extra.php
file adds Auto Installation
capabilities for custom scripts. Otherwise, you do not need to upload
this file.
Activating the Hook with Your Hosting Plans
- Custom Field #1
- Field Name: Script
- Field Type: Drop Down
- Description: Select the script to install
- Validation:
- Select Options: (comma-separated scripts list)**
- Custom Field #2
- Field Name: Admin Name
- Field Type: Text Box
- Description: Select your Admin Name for the script
- Validation:
- Select Options:
- Custom Field #3
- Field Name: Admin Pass
- Field Type: Text Box
- Description: Select your Admin Pass for the script
- Validation:
- Select Options:
- Custom Field #4
- Field Name: Admin Pass
- Field Type: Text Box
- Description: Select the directory you want to install the script at
- Validation:
- Select Options:
Here is a list of popular scripts, which are comma-separated for your convenience:
None, WordPress, b2evolution, StatusNet, Drupal, Mambo, phpBB, SMF, AEF,
Coppermine, Gallery, Jcow, OpenClassifieds, openX, WebCalendar, Shadows Rising,
phpList, SquirrelMail, LimeSurvey, Piwik, SugarCRM, PHProjekt, osCommerce,
Magento, phpBook, HESK, osTicket, kPlaylist, VidiScript, Gregarius, CodeIgniter, Moodle, Elgg
Setup when the Module Runs
The Hook will run to auto install the scripts only when an account is being created. To modify when this takes place, go to Setup -> Products/Services -> Products/Services and choose the hosting plan for automation.
Select your desired settings and hit the “Save Changes”
button.
Testing the Module
Initiate an order from a Dummy Account. Ensure that the Admin Name and Admin Pass are setup and that a script is selected.
Then click on the “Create”
button to create the order.
You should see a box on the page that reads:
“Are you sure you want to run the create function?”
Confirm this action by clicking the “Yes”
button.
If the module was successful, you will see the message
“Script Installed successfully”
If the hook was unsuccessful, you will see
“Installation not completed”
followed by the error given
When you are finished testing the module, remove the
softaculous_debug.php
file from your WHMCS installation