unable to execute runcronjobs.php from command line

Author Message

kris james

Tuesday 27 December 2005 8:37:24 pm

I started runcronjobs.php like this:
php -d memory_limit=200M -C runcronjobs.php
or
php runcronjobs.php
and
php -d memory_limit=200M runcronjobs.php

but got the following meesage

[root@xxxx httpdocs]# php -d memory_limit=200M -C runcronjobs.php
X-Powered-By: PHP/4.4.1
Content-type: text/html
PHP is currently using the 'cgi' interface. Make sure it is using the 'cli' interface.

[root@xxxx httpdocs]# whereis php
php: /usr/bin/php /etc/php.d /etc/php.ini

[root@xxxx httpdocs]# php -v
PHP 4.4.1 (cgi) (built: Nov 17 2005 11:27:21)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with the ionCube PHP Loader v2.5, Copyright (c) 2002-2004, by ionCube Ltd.

I am using:
eZ 3.7.2
PHP 4.4.1

Please help

Gabriel Ambuehl

Wednesday 28 December 2005 12:07:08 am

CGI!=CLI version, the CGI version is for the web, the CLI for the command line. You need to get the CLI as well. As for how to get it, that wholly depends on your distro.

Visit http://triligon.org

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 31 2025 08:05:49
Script start
Timing: Jan 31 2025 08:05:49
Module start 'layout'
Timing: Jan 31 2025 08:05:49
Module start 'content'
Timing: Jan 31 2025 08:05:49
Module end 'content'
Timing: Jan 31 2025 08:05:49
Script end

Main resources:

Total runtime0.0179 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.3828151.2422
Module start 'layout' 0.00650.0024 739.625036.7109
Module start 'content' 0.00890.0075 776.335990.1094
Module end 'content' 0.01640.0014 866.445329.9922
Script end 0.0178  896.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002413.5785140.0002
Check MTime0.00115.9784140.0001
Mysql Total
Database connection0.00189.955210.0018
Mysqli_queries0.002212.362330.0007
Looping result0.00000.066710.0000
Template Total0.00105.710.0010
Template load0.00084.608910.0008
Template processing0.00021.068210.0002
Override
Cache load0.00063.316610.0006
General
dbfile0.002815.903080.0004
String conversion0.00000.050740.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.0001 secs