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?

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

Main resources:

Total runtime0.8075 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.9063152.6250
Module start 'layout' 0.00610.0035 740.531339.4453
Module start 'content' 0.00950.7965 779.9766425.6953
Module end 'content' 0.80600.0014 1,205.67198.1641
Script end 0.8074  1,213.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4824160.0002
Check MTime0.00140.1708160.0001
Mysql Total
Database connection0.00100.125710.0010
Mysqli_queries0.765594.8024520.0147
Looping result0.00060.0776500.0000
Template Total0.772695.720.3863
Template load0.00230.283720.0011
Template processing0.770395.400420.3852
Template load and register function0.00020.030910.0002
states
state_id_array0.00120.148410.0012
state_identifier_array0.00210.254720.0010
Override
Cache load0.00190.2366130.0001
Sytem overhead
Fetch class attribute can translate value0.00080.101110.0008
Fetch class attribute name0.00110.134220.0005
XML
Image XML parsing0.00010.015910.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00070.0818100.0001
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs