The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cron hourly problem ?

Discussion in 'General Discussion' started by Bulent Tekcan, Apr 6, 2006.

  1. Bulent Tekcan

    Bulent Tekcan Well-Known Member

    Joined:
    May 11, 2004
    Messages:
    178
    Likes Received:
    0
    Trophy Points:
    16
    Received this error from my server everyday..



    /etc/cron.hourly/modsecparse.pl:

    DBI connect('modsec:localhost','modsec',...) failed: Lost connection to MySQL server during query at /etc/cron.hourly/modsecparse.pl line 18


    Any idea for that ?
     
  2. cyrus

    cyrus Member

    Joined:
    Mar 1, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    - Make sure the database 'modsec' is present on the system and it has the table 'modsec' in it.
    - Do 'use modsec;repair table modsec' in MySQL prompt (via SSH)
    - If everything is OK, run the script manually perl /etc/cron.hourly/modsecparse.pl

    If all fails, remove an re-add the mod_security module through WHM (make sure you make a copy of your rules first)
     
Loading...

Share This Page