Working with PHP-CGI ?

Author Message

nico lem

Monday 23 February 2009 4:33:45 pm

Has anyone got eZ publish working with PHP 4.3.0 cgi? (Putting #!/path/to/php-cgi-bin)

I'd be interested to know any experiences with it..

[url=http://www.source-promo.com/]Inexpensive Coporate Gifts[/url]
[url=http://www.whitesandsmalls.co.uk/Calvin_Klein_Underwear_For_Men], Calvin Klein underwear[/url]

Jean-Yves Zinsou

Tuesday 24 February 2009 12:19:27 am

Hello,
The install went pretty fine, i had to configure a little eZpublish to make it work properly (avoiding search problem issues)
here are the steps i used to make it work :
i created the site folowing site access (i could not access the apache conf, it was on a shared host )

SetEnv REGISTER_GLOBALS 0
SetEnv MAGIC_QUOTES 1

  
  Options -Indexes
  DirectoryIndex index.php
  RewriteEngine On
  #Clustered setup switch
  RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
  RewriteRule ^/var/([^/]+/)?storage/images(-versioned)?/.* /index_image-common.php [L]
  
  RewriteCond %{HTTP_HOST} ^webdav\..*
  RewriteRule ^(.*) webdav.php [L]
  
  RewriteCond %{HTTP_HOST} ^soap\..*
  RewriteRule ^(.*) soap.php [L]
  
  RewriteRule ^(.*)favicon\.ico - [L]
  RewriteRule ^robots\.txt - [L]
  RewriteRule ^sitemap\.xml - [L]
  RewriteRule ^var/cache/debug.html.* - [L]
  RewriteRule ^var/[^/]+/cache/debug.html.* - [L]
  Rewriterule ^var/storage/.* - [L]
  Rewriterule ^var/[^/]+/storage/.* - [L]
  RewriteRule ^var/cache/texttoimage/.* - [L]
  RewriteRule ^var/[^/]+/cache/texttoimage/.* - [L]
  Rewriterule ^design/[^/]+/(stylesheets|images|javascript|flash)/.* - [L]
  Rewriterule ^share/icons/.* - [L]
  Rewriterule ^extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?|flash)/.* - [L]
  Rewriterule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
  RewriteRule .* index.php [L]
  #RewriteCond $1 !^(images|system|themes|favicon\.ico|robots\.txt|index\.php) [NC]

Edited the settings/override/site.ini.append.php
In the [SiteAccessSettings] section added

RemoveSiteAccessIfDefaultAccess=enabled
ForceVirtualHost=true

Hope this helps

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

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

Main resources:

Total runtime0.5575 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.9141152.6250
Module start 'layout' 0.00630.0034 740.539139.4453
Module start 'content' 0.00970.5464 779.9844524.8438
Module end 'content' 0.55610.0014 1,304.828112.1719
Script end 0.5575  1,317.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5661160.0002
Check MTime0.00120.2153160.0001
Mysql Total
Database connection0.00090.159110.0009
Mysqli_queries0.515692.4835540.0095
Looping result0.00050.0870520.0000
Template Total0.525494.220.2627
Template load0.00200.351220.0010
Template processing0.523493.883420.2617
Template load and register function0.00020.028910.0002
states
state_id_array0.00110.195710.0011
state_identifier_array0.00160.287520.0008
Override
Cache load0.00160.2786170.0001
Sytem overhead
Fetch class attribute can translate value0.00080.141320.0004
Fetch class attribute name0.00110.196930.0004
XML
Image XML parsing0.00080.135620.0004
class_abstraction
Instantiating content class attribute0.00000.001630.0000
General
dbfile0.00080.1466160.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs