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 a php file requires shell access?

Discussion in 'General Discussion' started by GOT, Jun 8, 2005.

  1. GOT

    GOT Get Proactive!

    Joined:
    Apr 8, 2003
    Messages:
    902
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Norfolk, VA
    cPanel Access Level:
    DataCenter Provider
    I've got an issue that is stumping me a bit.

    I have one server (a Trustix box) that when a user adds a cron to run a php file, the system sends out an email that says:

    Shell access is not enabled on your account!
    If you need shell access please contact support.

    This happens no matter WHAT method of running the file is used. php -q -f, wget, get, curl, whatever, all results in the same. And its not something in the ecript either. We have set it to as minimal as a simple html file with NO php code in it at all, and we get this response.

    Checked file permissions on php, they're fine.

    I'm sitting here at something of a loss. Anyone got an idea?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. laborspy

    laborspy Well-Known Member

    Joined:
    Feb 7, 2004
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    156
    sometimes it takes telling the php script where the php files are. try something like this.

    /usr/local/bin/php /home/username/script.php > null

    -jason
     
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