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.