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 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:
    900
    Likes Received:
    0
    Trophy Points:
    16
    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?
     
  2. laborspy

    laborspy Well-Known Member

    Joined:
    Feb 7, 2004
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    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