Mod_security no longer works on my server, and I'm seeking further advice:
What I have done recently:
Upgraded to PHP 5, then to MySQL 5. The problems started only after the latter. Of course there may have been cPanel-indused upgrades that affected this.
Symptoms:
1. The hourly cron job is sending me error messages:
/etc/cron.hourly/modsecparse.pl:
DBI connect('modsec:localhost','modsec',...) failed: Access denied for user 'modsec'@'localhost' (using password: YES) at /etc/cron.hourly/modsecparse.pl line 19
Unable to connect to mysql database at /etc/cron.hourly/modsecparse.pl line 19.
2. If I click on Mod Security in the WHM panel I get a page with a header but no other information,
3. There appears to be nothing in the modsec log (checked via the configserver firewall front end.)
I checked httpd.conf to ensure the modsec.conf is being included.
I uninstalled modsec from the plugin section and checked it instead in the Apache build options.
I tried the solution in
http://forums.cpanel.net/showthread.php?t=68886&highlight=modsec
"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};
"
and I did make this change.
None of this matters.
What I have done recently:
Upgraded to PHP 5, then to MySQL 5. The problems started only after the latter. Of course there may have been cPanel-indused upgrades that affected this.
Symptoms:
1. The hourly cron job is sending me error messages:
/etc/cron.hourly/modsecparse.pl:
DBI connect('modsec:localhost','modsec',...) failed: Access denied for user 'modsec'@'localhost' (using password: YES) at /etc/cron.hourly/modsecparse.pl line 19
Unable to connect to mysql database at /etc/cron.hourly/modsecparse.pl line 19.
2. If I click on Mod Security in the WHM panel I get a page with a header but no other information,
3. There appears to be nothing in the modsec log (checked via the configserver firewall front end.)
I checked httpd.conf to ensure the modsec.conf is being included.
I uninstalled modsec from the plugin section and checked it instead in the Apache build options.
I tried the solution in
http://forums.cpanel.net/showthread.php?t=68886&highlight=modsec
"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};
"
and I did make this change.
None of this matters.