Applicable to:
- SolusVM
Question
How to configure callback to WHMCS in SolusVM?
Answer
-
Log in to the administrator area of SolusVM.
-
Open Configuration > Settings > Callback.
-
Set Enabled to Yes.
-
In the URL field select secure (https) or not secure (http) connection to the WHMCS instance and insert a link to
callback.php
, for example,whmcs_domain.com/modules/servers/solusvmpro/callback.php
-
Copy Hash.
-
Enable all required action options that should trigger a callback.
-
Access WHMCS server over SSH.
-
Copy
callbacl_example.php
:# cp -a /WHMCS_root_directory/modules/servers/solusvmpro/callback_example.php /WHMCS_root_directory/modules/servers/solusvmpro/callback.php
-
Update the following section in the file
SectionCONFIG_TEXT: // it needs to be removed
//exit();
/**
* @var $admin_user
* The username of a administrator in your whmcs.
*/
$admin_user = "admin";
/**
* @var $security_hash
* The hash as shown in SolusVM.
* You can specify more than one master
*/
$security_hash = "xxx, xxx, xxx";
/**
* @var $connection_ip
* The ip address of your SolusVM master.
* You can specify more than one master
*/
$connection_ip = "xxx, xxx, xxx";Where
admin_user - username of WHMCS Administrator.
security hash - hash from step 5.
connection_ip - IP address of Master SolusVM server.
Comments
0 commentsPlease sign in to leave a comment.