Apache Module: ModSecurity SDBM Utility
Last modified: August 28, 2019
cPanel & WHM provides the ModSecurity™ SDBM utility to purge expired entries from the /
var/cpanel/secdatadir/ip.pag cache file. ModSecurity stores variables in this file, but does not automatically clean up the file when the variables expire. We provide this utility only as an RPM for EasyApache 4 systems.
Install the SDBM utility
To install the ModSecurity SDBM utility, run the following command:
yum install ea-modsec-sdbm-util
This RPM installs the
Run the SDBM utility
/scripts/maintenance script calls the SDBM utility if the utility exists on the system. We strongly recommend that you allow the maintenance script to run the utility.
Run the utility manually
/scripts/shrink_modsec_ip_database script to run the SDBM utility. This script serves as a wrapper for the
/usr/sbin/modsec-sdbm-util binary. This wrapper only functions when the utility exists on the system. To execute the script and purge expired entries from the
/var/cpanel/secdatadir/ip.pag cache file, run the following command:
You can also run the following commands in a shell to purge the cache file:
- If you execute the utility manually, you must run the
/scripts/restartsrv_httpdcommand after the utility completes.
- Typical cPanel & WHM installations do not require that you run the script manually.