How to configure callback to WHMCS in SolusVM?

Have more questions? Submit a request

Applicable to:

  • SolusVM

Question

How to configure callback to WHMCS in SolusVM?

Answer

  1. Log in to the administrator area of SolusVM.

  2. Open Configuration > Settings > Callback.

  3. Set Enabled to Yes.

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

  5. Copy Hash.

Example of callback configuration

ConCallback.PNG

  1. Enable all required action options that should trigger a callback.

  2. Access WHMCS server over SSH.

  3. Copy callbacl_example.php:

    # cp -a /WHMCS_root_directory/modules/servers/solusvmpro/callback_example.php /WHMCS_root_directory/modules/servers/solusvmpro/callback.php

  4. Update the following section in the file

    Section

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

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.