Jan 202010
 

cPanel access denied for user modsec at mysql localhost

If you get this email:

/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.

and you are using old cPanel/Apache 1.3 just goto whm -> Plugins then remove and reinstall mod_security.

If you have Apache2 installed and mod_security enabled via easyapache3 on cPanel 11 and you get this error, check password at /etc/cron.hourly/modsecparse.pl and you can adjust password of modsec user through whm -> phpMyAdmin -> privileges

Nice huh?

 Posted by at 6:06 am

 Leave a Reply