Introduction
Many of the cPanel and WHM features are customizable server-wide from the "Tweak Settings" interface in WHM. These values are stored in the cpanel.config
file, but changing this file directly will not necessarily change the setting. This article provides the procedure for modifying the settings using the API on the command line.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Use the
set_tweaksetting
API function to set the new value for the desired setting.whmapi1 set_tweaksetting key=$settingname value=$newvalue
Please note that "$settingname" and "$newvalue" must be replaced with the name of the module to modify and the new value, respectively. - Use the
get_tweaksetting
API function to verify that the setting was updated.whmapi1 get_tweaksetting key=$settingname
Please note that "$settingname" must be replaced with the name of the modified module.
Additional resources
Return Tweak Settings option's value
How to configure cPanel WHM settings using Tweak Settings
Comments
0 comments
Article is closed for comments.