modsec.sqlite file size
How can I clean or empty the contents of this file and not cause any problems in the operation of cPanel?
/scripts/restartsrv_tailwatchd --stop
mv /var/cpanel/modsec/modsec.sqlite /var/cpanel/modsec/modsec.sqlite.old1
/scripts/setup_modsec_db
/scripts/restartsrv_tailwatchd --start
It would clear the database having the hit list and setup_modsec_db would create a clean empty one.
Leave a Comment