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.