Forums / General / Running update scripts in CGI

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Running update scripts in CGI

Author Message

Marc Boon

Wednesday 19 April 2006 6:37:05 am

My provider runs PHP in CGI mode, and eventhough I have shell access, also from the shell PHP runs in CGI. php - v returns:

PHP 4.4.1 (cgi) (built: Mar 10 2006 11:26:44)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    with Zend Optimizer v2.5.10, Copyright (c) 1998-2005, by Zend Technologies

This causes error messages when trying to run update scripts, making updates impossible.

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

Is there any way to get around this problem (other than changing provider)?

Marc Boon

Friday 21 April 2006 2:10:49 am

I found a workaround here:
http://ez.no/community/forum/suggestions/workaround_for_installations_without_phpcli
and it seems to work.

What exactly is the reason that this patch is not in the official release?