Forums / Developer / Problem getting cron job to run
Eirik Alfstad Johansen
Thursday 14 April 2005 2:34:56 am
Hi,
I'm having trouble getting runcronjobs.php to run as a cron job. The problem is that when the cron job runs the script, it spits out:
PHP is currently using the 'cgi' interface. Make sure it is using the 'cli' interface.
The command I'm running in the cron job is:
cd /home/username/ezpub_root;php /home/naturno/www/mittnettsted/runcronjobs.php
I've tried both with and without the -C flag in the php part of the command. Any idea what I need to do in order to run PHP using the cli interface?
Thanks in advance !
Sincerely, Eirik Alfstad Johansen http://www.netmaking.no/
Łukasz Serwatka
Thursday 14 April 2005 2:40:53 am
Hi Eirik,
Probadly your PHP is compiled with --disable-cli flag and you will have to recompile it. You can ask administrator as well.
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Thursday 14 April 2005 2:43:59 am
Some additional informationshttp://ez.no/community/forum/suggestions/workaround_for_installations_without_phpcli
Thursday 14 April 2005 3:46:21 am
Thanks a lot, Lukasz!