Get Virtualizor

Webuzo Settings

We have integrated Webuzo control panel in Virtualizor. So now you can create a VPS with Webuzo installed on it. You can also select which script you want to pre-install while the VPS is being created. For more information, you can refer this Creating OS Template guide.

Use the Webuzo Settings API to configure the webuzo settings on the Virtualizor panel. For getting individual webuzo script ID use the Webuzo script ID API. After getting the script IDs you can enable them using the API, which will allow the admin/enduser or to install application like WordPress and Presto on their VPS. The API response will contain "done" as "1" after the settings have been saved successfully.

For more information about webuzo, see the Webuzo Main Page.

HTTP Request

https://hostname:4085/index.php?act=webuzo

Parameters

NameMethodValueDescriptionRequired
actGETwebuzoThe action will return done as 1 when the webuzo configuration have been successfully savedYes
noc_apikeyPOSTtextYour NOC API KeyNo
noc_apipassPOSTtextYour NOC API PassNo
disable_webuzoPOST1/0If set the all the webuzo scripts will be disabledNo
select_allPOST1/0If set all the scripts will be selected and installedNo
sel_scriptsPOSTarrayThe array of script IDs to be installed along with WebuzoNo

Sample Code

<?php

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = 'your_api_pass';
    $ip = 'your_server_ip';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['noc_apikey'] = '';
    $post['noc_apipass'] = '';
    $post['disable_webuzo'] = '';
    $post['select_all'] = '';
    $post['sel_scripts'] = array(72,79,13);

    $output = $admin->webuzo($post);

    print_r(json_encode($output));
?>

Output

{
    "title": "Webuzo Settings",
    "done": 1,
    "scripts": {
        "26": {
            "sid": 26,
            "parent": "0",
            "name": "WordPress",
            "softname": "wp",
            "type": "php",
            "category": "blogs"
        },
        "18": {
            "sid": 18,
            "parent": "413",
            "name": "Joomla 2.5",
            "softname": "joomla16",
            "type": "php",
            "category": "cms"
        },
        "389": {
            "sid": 389,
            "parent": "0",
            "name": "AbanteCart",
            "softname": "abante",
            "type": "php",
            "category": "ecommerce"
        },
        "72": {
            "sid": 72,
            "parent": "0",
            "name": "PrestaShop",
            "softname": "presta",
            "type": "php",
            "category": "ecommerce"
        },
        "413": {
            "sid": 413,
            "parent": "0",
            "name": "Joomla",
            "softname": "joomla30",
            "type": "php",
            "category": "cms"
        },
        "70": {
            "sid": 70,
            "parent": "499",
            "name": "OpenCart 1.5",
            "softname": "ocart",
            "type": "php",
            "category": "ecommerce"
        },
        "30": {
            "sid": 30,
            "parent": "543",
            "name": "Drupal 7",
            "softname": "drupal",
            "type": "php",
            "category": "cms"
        },
        "2": {
            "sid": 2,
            "parent": "0",
            "name": "phpBB",
            "softname": "phpbb",
            "type": "php",
            "category": "forums"
        },
    "enabled_scripts": {
        "72": 72,
        "79": 79,
        "13": 13,
        "11": 11,
        "39": 39,
        "8": 8,
        "83": 83,
        "55": 55,
        "1": 1,
        "24": 24,
        "100": 100,
        "86": 86,
        "82": 82,
        "57": 57,
        "3": 3,
        "45": 45,
        "34": 34,
        "20": 20,
        "19": 19,
        "58": 58,
        "101": 101,
        "104": 104,
        "38": 38,
        "99": 99,
        "81": 81,
        "105": 105,
        "113": 113,
        "114": 114,
        "29": 29,
        "78": 78,
        "514": 514,
        "87": 87,
        "107": 107,
        "56": 56,
        "95": 95,
        "49": 49,
        "59": 59,
        "76": 76,
        "98": 98,
        "64": 64,
        "74": 74,
        "80": 80,
        "61": 61,
        "43": 43,
        "106": 106,
        "73": 73,
        "48": 48,
        "102": 102,
        "88": 88,
        "75": 75,
        "77": 77
    },
    "timenow": 1537180879,
    "time_taken": "0.109"
}
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list