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 and Ajax errors

Discussion in 'General Discussion' started by GuyScharf, Jun 4, 2012.

  1. GuyScharf

    GuyScharf Registered

    Joined:
    Mar 19, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I am trying to use cpanel to add a cron job and finding some curious problems, possibly reflecting that I don't understand what cpanel is trying to do.

    My web host provides two ways of invoking cpanel using my domain name: http://cpanel.domain[dot]com or http://[I]domain[dot]com[/I]:2082. I am trying to add or edit a command that begins "php -q ...". When I access cpanel via port 2082, everything works as expected. When I access through the http://cpanel.domain[dot]com URL, I get an Ajax error when trying to add or edit this command.

    In further testing, I found that I could add or edit a shell command without any problems. But using a command that begins with "php -q" is the problem. I tried changing the command to "/usr/bin/php -q ..." but that didn't help.

    So my questions are: 1) Is cpanel trying to validate the command that I am putting into the cron file and, if so, what kind of validation is it performing? 2) Why might accessing cpanel through these two different URLs have different results? (I am told by my web host that the two URLs are supposed to be equivalent.)

    Some more information: I have accounts on several servers with this web host. Two of the servers exhibit the behavior described here. On the other, newer server, I can add or edit cron commands without problem regardless of which URL I use to access cpanel. A month or two ago I first saw this difference between URLs on one server. Separately, the host tech fixed a phpMyAdmin problem by applying an update or fix to cpanel, and that made this problem disappear. Now it's back and on two servers now rather than the one it was on before.

    Thanks!
     
    #1 GuyScharf, Jun 4, 2012
    Last edited: Jun 4, 2012
Loading...

Share This Page