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.

Mod Security affecting cron jobs

Discussion in 'Security' started by NemoXP, Aug 26, 2012.

  1. NemoXP

    NemoXP Active Member

    Joined:
    Feb 25, 2010
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Constanta, Romania, Romania
    cPanel Access Level:
    Root Administrator
    I have problems with cron jobs after mod security:
    Code:
    Access denied with code 406 (phase 2). Match of "rx ^apache.*perl" against "REQUEST_HEADERS:User-Agent" required. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "58"] [id "990011"] [msg "Request Indicates an automated program explored the site"] [severity "NOTICE"]
    Cron looks like this lynx -dump http://www.SITE.TLD/FODLER/FILE.php

    Please help


    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    649
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You will need to disable the rule referenced in the error message from the following file:

    /usr/local/apache/conf/modsec2.user.conf

    Or, you may want to consider updating the cron job to utilize "php" instead of "lwp-request".

    Feel free to open a support ticket if you want us to to take a closer look:

    Submit A Ticket

    Thank you.
     
Loading...

Share This Page