Enable or disable Webalizer to control whether a supported cPanel server generates Webalizer traffic statistics. This article explains how to change the server setting through the WHM command-line API and verify its value.
Check availability
You need root access to a cPanel & WHM server that still provides Webalizer.
cPanel plans to deprecate Webalizer in version 140 and remove it in version 142. These commands only apply while the feature remains available. Check the installed version and cPanel’s deprecation plan before using this guide.
Connect to the server using SSH as root. The skipwebalizer setting controls whether Webalizer processing is skipped. Use the WHM API rather than editing /var/cpanel/cpanel.config directly, which may not apply the setting correctly.
Enable Webalizer
Run:
whmapi1 set_tweaksetting key=skipwebalizer value=0A value of 0 enables Webalizer processing on versions that support it. Check the API response for success or an error.
Disable Webalizer
Run:
whmapi1 set_tweaksetting key=skipwebalizer value=1A value of 1 disables Webalizer processing. Check the API response before continuing.
Verify the setting
Run:
whmapi1 get_tweaksetting key=skipwebalizerConfirm that the returned value matches your intended setting. This checks configuration; it does not establish that a new statistics report has already been generated or remove existing reports.
If the feature or setting is unavailable, consult the statistics tools supported by your installed cPanel version. Do not create a configuration entry to try to restore a removed feature.