Forums / Developer / Problem getting cron job to run

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Problem getting cron job to run

Author Message

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

Łukasz Serwatka

Thursday 14 April 2005 2:43:59 am

Some additional informations
http://ez.no/community/forum/suggestions/workaround_for_installations_without_phpcli

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Eirik Alfstad Johansen

Thursday 14 April 2005 3:46:21 am

Thanks a lot, Lukasz!

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/