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.

Cronjob php sapi error

Discussion in 'General Discussion' started by resellertr, Dec 2, 2013.

  1. resellertr

    resellertr Member

    Joined:
    Feb 16, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    We installed Group Office script, setup cronjob for it. But their cronjob script warns us

    "ERROR: This script must be run on the command line."

    our cronjob entry is

    * * * * * php /home/officela/public_html/groupofficecli.php -c=/home/officela/public_html/config.php -r=core/cron/run -q

    I tried to run via ssh and there is no problem.

    php /home/officela/public_html/groupofficecli.php -c=/home/officela/public_html/config.php -r=core/cron/run -q


    I asked Group Office support they told me that our cronjob is not running PHP_SAPI as CLI.

    Is there a fix or config cronjob php run as CLI?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page