Hello,
This should be working now. For some reason the installer was not moving modsecparse.pl to /usr/local/cpanel/addons and adding the root cron to call this command every hour. This script is what dumps the logs into the WHM Manager >> ModSecurity part.
Please confirm how this is working for you. Thank you.
--
Kyle Pinkley
Technical Support
cPanel
Please submit a ticket about this to get it fixed.Ours all stopped working on version 10, even with the upgrade to 11 last week it still hasn't worked.
# locate modsecparse.pl
/usr/local/cpanel/modules-install/modsecurity-Linux-i686/modsecparse.pl
/etc/cron.hourly/modsecparse.pl
#
Even if we call the script directly the logs never update !!! May have to get support to look into it
I can exec /etc/cron.hourly/modsecparse.pl with success and no errors....... but WHM modsec logs keeps frozen, so I realize the /etc/cron.hourly/modsecparse.pl is not doing nothing at all, although audit_log is correct and the privileges are also correct as well as the db config...[email protected] [/usr/local/cpanel/addons]# locate modsecparse.pl
/etc/cron.hourly/modsecparse.pl
/usr/local/cpanel/modules-install/modsecurity-Linux-i686/modsecparse.pl
I can confirm that .. look at http://forums.cpanel.net/showthread.php?t=66756Well I guess finally the problem is located at the:
https://myserver:2087/cgi/addon_modsec.cgi
The cgi is quite awful, since is not showing the modsec database records in a logical order (the last one is the first you see, obviously)
I thought the system was not running ok, but if I search for a new record (the last one) placed at modsec database, by example by IP, the WHM shows it to me....
The modsecparse.pl is running ok (introducing new data at database modsec) and the database is also alright.... it seems like the problems are located at addon_modsec.cgi of WHM
Can you confirm?
This is fixing mine too... thanks karlos :DHello,
I had the same problem and after submit a ticket seems like the problem is in
/usr/local/cpanel/whostmgr/docroot/cgi/addon_modsec.cgi
to fix the error remove the id field quotes in the query
$querystmnt = q{1 ORDER BY 'id' DESC LIMIT 0,30};
just like this
$querystmnt = q{1 ORDER BY id DESC LIMIT 0,30};
This work for me.
Karlos
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
C | Mod_Security rules for Joomla login failures | Security | 1 | |
7 | Mod_Security Block Time and CSF | Security | 4 | |
![]() |
mod_security not working | Security | 7 | |
J | Host header is a numeric IP address - why the fuss from mod_security? | Security | 9 | |
D | prestashop (ecommerce) and mod_security - legitime ip blocked | Security | 3 |