Need help in running cron job

Author Message

Ashish Banerjee

Wednesday 01 September 2004 3:37:12 am

Hi,
I am using Win2k machine and ezPublish 3.4.1. I am trying to run a cron job using PHP to clear the workflow queue. This is what happening.

1) I have set Windows path to php.exe, so when I am going to "C:\eZpublish\ezpublish", the directory where "runcronjobs.php" file is and running "php runcronjobs.php", then I am getting the following error:"C:\eZpublish\ezpublish>php runcronjobs.php
Content-type: text/html
X-Powered-By: PHP/4.3.6

PHP is currently using the 'cgi-fcgi' interface. Make sure it is using the 'cli'
interface."

2) If I am switching to the directory where the php.exe is, and then executing "php -C c:\eZpublish\ezpublish\runcronjobs.php" then I am getting whole bunch of error like
"<br />
<b>Warning</b>: main(lib/ezutils/classes/ezini.php): failed to open stream: No
such file or directory in <b>c:\eZpublish\ezpublish\lib\ezutils\classes\ezextens
ion.php</b> on line <b>49</b><br />
<br />"

Please help me asap. I need to set a demo for my team using ezPublish.

Thanks in advance
-Ashish

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 18 2025 22:32:17
Script start
Timing: Jan 18 2025 22:32:17
Module start 'layout'
Timing: Jan 18 2025 22:32:17
Module start 'content'
Timing: Jan 18 2025 22:32:17
Module end 'content'
Timing: Jan 18 2025 22:32:17
Script end

Main resources:

Total runtime0.0207 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 587.9141152.6250
Module start 'layout' 0.00800.0026 740.539139.4453
Module start 'content' 0.01060.0075 779.984485.2109
Module end 'content' 0.01810.0025 865.195330.3047
Script end 0.0206  895.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002813.6299140.0002
Check MTime0.00125.8656140.0001
Mysql Total
Database connection0.002210.585810.0022
Mysqli_queries0.002411.665430.0008
Looping result0.00000.068110.0000
Template Total0.00209.610.0020
Template load0.00104.828610.0010
Template processing0.00104.745510.0010
Override
Cache load0.00073.212510.0007
General
dbfile0.00157.487480.0002
String conversion0.00000.027740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs