.pdf)
WHM Plugins
/var/cpanel/cpanel.config file.
set_tweaksetting function from within your custom script:
/xml-api/set_tweaksetting function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/set_tweaksetting
set_tweaksetting function from within your custom script:
/json-api/set_tweaksetting function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/set_tweaksetting
set_tweaksetting function, this parameter should always be passed: 1
Main.
value parameter sets the option to undef. Specifying the value parameter without a value results in an empty parameter.
set_tweaksetting.
https://domain.tld:2087/xml-api/set?api.version=1&key=update_log_analysis_retention_length&value=90
will produce output similar to:
<result>
<metadata>
<version>1</version>
<reason>OK</reason>
<result>1</result>
<command>set_tweaksetting</command>
</metadata>
</result>
https://domain.tld:2087/json-api/set_tweaksetting?api.version=1&key=update_log_analysis_retention_length&value=90
will produce output similar to:
{
result:{
metadata:{
version:1,
reason:'OK',
result:1,
command:'set_tweaksetting'
}
}
}