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/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 01:03:09
Script start
Timing: Jan 19 2025 01:03:09
Module start 'layout'
Timing: Jan 19 2025 01:03:09
Module start 'content'
Timing: Jan 19 2025 01:03:10
Module end 'content'
Timing: Jan 19 2025 01:03:10
Script end

Main resources:

Total runtime0.6529 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 589.1563152.6250
Module start 'layout' 0.00830.0044 741.781339.4453
Module start 'content' 0.01270.6389 781.2266555.0938
Module end 'content' 0.65150.0014 1,336.320312.1641
Script end 0.6529  1,348.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4838160.0002
Check MTime0.00130.2041160.0001
Mysql Total
Database connection0.00250.387010.0025
Mysqli_queries0.593090.8220600.0099
Looping result0.00060.0867580.0000
Template Total0.599091.720.2995
Template load0.00230.354120.0012
Template processing0.596691.378420.2983
Template load and register function0.00010.022310.0001
states
state_id_array0.00140.212410.0014
state_identifier_array0.00120.179320.0006
Override
Cache load0.00190.2852220.0001
Sytem overhead
Fetch class attribute can translate value0.00080.117320.0004
Fetch class attribute name0.00110.169260.0002
XML
Image XML parsing0.00140.209120.0007
class_abstraction
Instantiating content class attribute0.00000.003080.0000
General
dbfile0.00180.2729240.0001
String conversion0.00000.001740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs