Forums / Install & configuration / Error PHP4 CGI

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

eZ debug

Timing: Jan 19 2025 00:18:00
Script start
Timing: Jan 19 2025 00:18:00
Module start 'content'
Timing: Jan 19 2025 00:18:01
Module end 'content'
Timing: Jan 19 2025 00:18:01
Script end

Main resources:

Total runtime0.5639 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 587.7031180.8438
Module start 'content' 0.00640.5539 768.5469545.0078
Module end 'content' 0.56020.0036 1,313.554742.1250
Script end 0.5639  1,355.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.6117140.0002
Check MTime0.00160.2786140.0001
Mysql Total
Database connection0.00070.131610.0007
Mysqli_queries0.514091.1421550.0093
Looping result0.00060.1038530.0000
Template Total0.533694.620.2668
Template load0.00240.425620.0012
Template processing0.531294.206220.2656
Template load and register function0.00010.020610.0001
states
state_id_array0.00180.321210.0018
state_identifier_array0.00100.181420.0005
Override
Cache load0.00200.3594290.0001
Sytem overhead
Fetch class attribute can translate value0.00150.271020.0008
Fetch class attribute name0.00160.282140.0004
XML
Image XML parsing0.00110.187120.0005
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00110.1932250.0000
String conversion0.00000.000930.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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