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!

cron and Ajax errors

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

  1. GuyScharf

    GuyScharf Registered

    Mar 19, 2010
    Likes Received:
    Trophy Points:
    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.

    #1 GuyScharf, Jun 4, 2012
    Last edited: Jun 4, 2012

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