Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    3

    Default modsecparse.pl issue

    I have a VPS with cPanel 11.25.0-R43252 - WHM 11.25.0 - X 3.9
    CENTOS 5 i686

    every hour i am getting a cron error

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


    I checked MySQL database and there is no db with the name of modsec.

    So, how to fix this issue ?

    Thanks to anyone who can help me here.

  2. #2
    Member
    Join Date
    Feb 2010
    Posts
    8
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Hello,

    Look in the modsecparse.pl file for the credentials, then as root in SSH:

    mysqladmin create modsec
    mysql
    mysql> GRANT ALL PRIVILEGES ON modsec.* TO 'modsec'@'localhost' IDENTIFIED BY 'PASSWORD';
    mysql> FLUSH PRIVILEGES;
    mysql> quit
    /etc/init.d/mysql restart
    /usr/local/cpanel/startup

    Replace PASSWORD with the password in modsecparse.pl

  3. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by Serverji View Post
    I have a VPS with cPanel 11.25.0-R43252 - WHM 11.25.0 - X 3.9
    CENTOS 5 i686

    every hour i am getting a cron error

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


    I checked MySQL database and there is no db with the name of modsec.

    So, how to fix this issue ?

    Thanks to anyone who can help me here.
    Are both mod_security and mod_unique_id installed in the Apache configuration?

    The following commands may be used to help verify the installation status and confirm if they are loading:
    Code:
    # find /usr/local/apache -regex ".*modsec.*\|.*mod_security.*" | sort
    # /usr/local/apache/bin/httpd -l | grep "unique_id"
    # /usr/local/apache/bin/httpd -M | egrep "sec|unique_id"
    I recommend to try correcting the issue by running EasyApache while ensuring to enable mod_security in the build profile, at the very least it should ensure there is a working mod_security installation. If this alone does not fully alleviate the reported symptom please consider submitting a support request so that we can examine the system and determine why the issue is occurring; if submitting a ticket please send me a PM referencing this thread and the ID number of your support request so that I may follow-up internally.

Similar Threads & Tags
Similar threads

  1. Eamil tranport issue / false positive authentication issue
    By doulos61 in forum E-mail Discussions
    Replies: 2
    Last Post: 08-02-2011, 11:53 PM
  2. modsecparse.pl and modsec database
    By chips12 in forum Security
    Replies: 0
    Last Post: 11-24-2010, 05:20 AM
  3. modsecparse.pl / mysql issues
    By katmai in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-18-2008, 04:08 PM
  4. modsecparse.pl fails after upgrading to mysql 5
    By mostaman in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-09-2008, 12:42 AM
  5. Error in Modsecparse.pl
    By silversurfer in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-28-2005, 05:15 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube