Problem with modsec.sqlite size

jlucho

Well-Known Member
Aug 5, 2006
85
1
158
dear

I have a problem with /var/cpanel/modsec/modsec.sqlite
current size is 12Gb

How can I clean or empty the contents of that file and not cause any problems in the operation of cPanel?

also, view this report : - Removed -
Likewise, how can I remove this option from "ModSecurity Tools> Hits List", how can you appreciate, it has more than 81 thousand pages
 
Last edited by a moderator:

SS-Maddy

Well-Known Member
Mar 28, 2009
130
18
68
cPanel Access Level
Root Administrator
Code:
/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. Those 81000 pages would also be cleared by now.