Skip to main content

Problem with modsec.sqlite size

Comments

3 comments

  • SS-Maddy
    /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.
    0
  • cPanelLauren
    Thanks for providing that advice @SS-Maddy @jlucho don't hesitate to let us know if you have any further questions or concerns.
    0
  • Islam Apon

    I faced the same issue with the modsecsqlite file, using 112 GB disk space on a server.

    I found that @SS-Maddy's command lines was overlaped. So here's the re-organized command lines if anyone else need it.

    /scripts/restartsrv_tailwatchd --stop 
    mv /var/cpanel/modsec/modsec.sqlite /var/cpanel/modsec/modsec.sqlite.old1 
    /scripts/setup_modsec_db 
    /scripts/restartsrv_tailwatchd --start
    1

Please sign in to leave a comment.