Cronjob php sapi error
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?
-
Hello :) Try using the full path to PHP to see if that helps. EX: /usr/local/bin/php
Thank you.0
Please sign in to leave a comment.
Comments
1 comment