resellertr

Member
Feb 16, 2005
8
0
151
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

Try using the full path to PHP to see if that helps. EX:

Code:
/usr/local/bin/php
Thank you.