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 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:
    1
    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
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    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
    
    
     
Loading...

Share This Page