Error PHP4 CGI

Author Message

Rodrigo Paulín

Wednesday 26 September 2007 8:02:01 am

Last week my ISP upgraded mod_php from version 4.3.8 to version 5.2.3. Now, PHP 4 it is available only as a CGI program. I cannot change of ISP, so I had to adapt eZ to the change.

I have mounted eZ Publish 3.9.0 in a directory like http://mysite.org/ezpublish/
eZ generated links like http://mysite.org/ezpublish/index.php/site/sales
and with a .htaccess file i get links like http://mysite.org/ezpublish/site/sales
this works for me.

Now, with the change, eZ generate links like http://mysite.org/ezpublish/index.php?/site/sales (question mark included) and with the same .htaccess file i get http://mysite.org/site/sales

I lose ezpublish/index.php? not only index.php?

So, eZ returns Module Not Found kernel(20)

My .htaccess is:

DirectoryIndex index.php

RewriteEngine On

RewriteRule !\.(gif|jpe?g|png|css|js|jar|html)|var(.+)storage.pdf(.+)\.pdf?$ - [C]
RewriteCond %{HTTP_HOST} ^webdav\..*
RewriteRule ^(.*) webdav.php [L]
RewriteCond %{HTTP_HOST} ^soap\..*
RewriteRule ^(.*) soap.php [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)/.* - [L]
RewriteRule ^share/icons/.* - [L]
RewriteRule ^extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
RewriteRule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule .* index.php [L]

Server:
FreeBSD 6.2-RELEASE-p1
Apache 2.2.4
PHP 4.4.7 CGI

Please, somebody help!

Quoi de neuf?

André R.

Friday 12 October 2007 12:12:57 am

Found this while searching for cgi problems.
If you havn't solved this yet, take a look at these threads:

cgi related:
http://ez.no/developer/forum/install_configuration/possible_to_remove_path_to_ez_index_php_under_fastcgi

virtual host related:
http://ez.no/developer/forum/general/remove_index_php_from_url
http://ez.no/developer/forum/install_configuration/htaccess_removing_index_php_and_online_editor
http://ez.no/developer/forum/install_configuration/remove_index_php

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 19 2025 02:41:54
Script start
Timing: Jan 19 2025 02:41:54
Module start 'layout'
Timing: Jan 19 2025 02:41:54
Module start 'content'
Timing: Jan 19 2025 02:41:55
Module end 'content'
Timing: Jan 19 2025 02:41:55
Script end

Main resources:

Total runtime1.3670 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.0050 589.1484152.6250
Module start 'layout' 0.00500.0034 741.773439.4453
Module start 'content' 0.00841.3574 781.2188539.9297
Module end 'content' 1.36580.0012 1,321.148412.1797
Script end 1.3670  1,333.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2455160.0002
Check MTime0.00140.1060160.0001
Mysql Total
Database connection0.00070.053110.0007
Mysqli_queries1.318296.4281540.0244
Looping result0.00050.0374520.0000
Template Total1.333497.520.6667
Template load0.00210.154320.0011
Template processing1.331397.387320.6656
Template load and register function0.00010.007010.0001
states
state_id_array0.00100.076610.0010
state_identifier_array0.00240.172320.0012
Override
Cache load0.00180.1328290.0001
Sytem overhead
Fetch class attribute can translate value0.00060.043420.0003
Fetch class attribute name0.00140.102840.0004
XML
Image XML parsing0.00110.081920.0006
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00110.0799230.0000
String conversion0.00000.000740.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/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: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs