cPanel access denied for user modsec at mysql localhost

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?

g33kadmin

I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.