buy
Change Hostname

Description

Use the Change Hostname API's to Update Webuzo Configuration , Webuzo Panel Settings and Webuzo Panel Ports.

Update Webuzo Configuration

Use this API for Update Webuzo Configuration.

API response The configuration was saved successfully.

Parameters

NameMethodValueDescriptionRequired
actGETtextThe action specified to retrieve data after update configurationYes
editconfigsPOSTtextThis will trigger update configuration.Yes
WU_PRIMARY_IPPOSTintPrimary IP for panel.No
WU_PRIMARY_IPV6POSTintPrimary IPv6 for panelNo
WU_PRIMARY_DOMAINPOSTtextHostname / Panel Domain name.No
WU_NS1POSTtextNS1 for panelNo
WU_NS2POSTtextNS2 for panelNo
quotaPOSTbooleaFor enable quotaNo

Sample Code

CURL PHP SDK
curl --insecure -d "editconfigs=1" -d "WU_PRIMARY_IP=ipv4" -d "WU_PRIMARY_IPV6=ipv6" -d "WU_PRIMARY_DOMAIN=domain.com" -d "WU_NS1=ns1.com" -d "WU_NS2=ns2.com"  -d "quota=true" -X POST  "https://hostname:2005/index.php?api=json&act=webuzoconfigs&apiuser=user_name&apikey=pass_api_key"

Output

The configuration was saved successfully

Webuzo Panel Settings

Use this API for Update Webuzo Panel Setting.

API response The Webuzo PHP settings were saved successfully

Parameters

NameMethodValueDescriptionRequired
actGETtextThe action specified to retrieve data after update panel settingYes
webuzophpsettingsGETintThis will trigger update panel settingYes
max_execution_timePOSTintSet Webuzo PHP Max Execution TimeNO
post_max_sizePOSTintSet Webuzo PHP Max POST Size.NO
upload_max_filesizePOSTintSet Webuzo PHP Max Upload SizeNO
client_max_body_sizePOSTintSet Webuzo Service Client Max Body SizeNO
pm_max_childrenPOSTintSet Webuzo PHP-FPM Max ChildrenNO
pm_start_serversPOSTintSet Webuzo PHP-FPM Start ServersNO
pm_min_spare_serversPOSTintSet Webuzo PHP-FPM Min Spare ServersNO
pm_max_spare_serversPOSTintSet Webuzo PHP-FPM Max Spare ServersNO
pm_max_requestsPOSTintSet Webuzo PHP-FPM Max RequestNO
request_terminate_timeoutPOSTintSet Webuzo PHP-FPM Request Terminate TimeoutNO

Sample Code

CURL PHP SDK
curl --insecure -d "max_execution_time=minimum_30" -d "post_max_size=minimum_128"   -X POST  "https://hostname:2005/index.php?api=json&act=webuzoconfigs&webuzophpsettings=1&apiuser=user_name&apikey=pass_api_key"

Output

The Webuzo PHP settings were saved successfully

Webuzo Panel Ports

Use this API for Set custom Webuzo Panel ports.

API response The Webuzo Panel Ports were saved successfully

Parameters

NameMethodValueDescriptionRequired
actGETtextThe action specified to retrieve data after update panel portsYes
webuzo_portsGETintThis will trigger set portsYes
admin_port_sslPOSTintAdmin SSL portNo
admin_port_nonsslPOSTintAdmin Non-SSL portNo
enduser_port_sslPOSTintEnduser SSL portNo
enduser_port_nonsslPOSTintEnduser Non-SSL portNo

Sample Code

CURL PHP SDK
curl --insecure -d "admin_port_ssl=port_no" -d "admin_port_nonssl=port_no" -d "enduser_port_ssl=port_no" -d "enduser_port_nonssl=port_no" -X POST  "https://hostname:2005/index.php?api=json&act=webuzoconfigs&webuzo_ports=1&apiuser=user_name&apikey=pass_api_key"

Output

The Webuzo Panel Ports were saved successfully

    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list