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