Forums / Install & configuration / unable to execute runcronjobs.php from command line
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 andphp -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/htmlPHP is currently using the 'cgi' interface. Make sure it is using the 'cli' interface.
[root@xxxx httpdocs]# whereis phpphp: /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 GroupZend 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.2PHP 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