Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Mod security effecting cron jobs

Discussion in 'Security' started by Frano8, Jun 6, 2009.

  1. Frano8

    Frano8 Member

    Joined:
    Nov 30, 2008
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    51
    I am having problems in cron jobs running due to mod security I thinks this is the cron job I want to run:

    GET "http://www.path_to_domain/admin/currencies.php?page=1&cID=5&action=update"

    but i always receive an email error and the follwoing error in mod_security:

    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"]

    406

    Is there anyway around this?

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,168
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You could disable that rule or just change this up a bit. I suggest changing it.

    This is probably not exactly what you need, but should give you an idea what would work.


    Code:
    php -q -f /home/username/public_html/admin/currencies.php?page=1&cID=5&action=update /home/username/public_html/admin/ cron 0 10
    
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice