3.4 and PHP-CGI

Author Message

Ben Pirt

Thursday 03 June 2004 9:13:32 am

Well, I was quite excited about the upcoming fix to the CGI problem and so today tried out the new 3.4 stable release.
It looks very good and am looking forward to trying out the new features. Unfortunately the CGI fix is a little disappointing.
I am a real sucker for a nice clean url, but unfortunately it seems to need to begin with /index.php?/

Is there a reason that it has to have this in?
I made a fix to version 3.3-3 which did not need this part of the URL and everything seems to work fine - no problems yet.

see http://ez.no/community/forum/install_configuration/possible_fix_for_the_cgi_problem

I would love to have this working and hate having to hack things so that they do. I'm sure I'm just misunderstanding the problem or something, but I'm very curious why it has to work this way.

All the best, and congratulations on getting 3.4 out,

Ben Pirt

Ben Pirt

Tuesday 08 June 2004 4:46:20 am

no ideas from anyone?
I guess I must be the only one this bothers.

Paul Forsyth

Tuesday 08 June 2004 7:58:01 am

Hey Ben,

Isnt the index.php a web server rewrite issue? Can the .htaccess help here?

paul

--
http://www.visionwt.com

Ben Pirt

Thursday 17 June 2004 1:46:49 am

I suppose the rewriting rule could be changed so that it changes this.
Not sure how to do it though. I'll start experimenting and post back here with results.

All the best,

Ben Pirt

Gustave Stresen-Reuter

Monday 12 July 2004 4:08:45 pm

So, are you saying you actually got eZ Publish to isntall and work with PHP running as CGI? I was able to get all the way through the installation process but then was unable to actually access the site (HTTP 500 errors and "FATAL: emalloc(): Unable to allocate 12 bytes" errors in Apache error log).

Also, the installer instructed me to add "AcceptPathInfo On" to .htaccess (since I don't have access to httpd.conf), which I did, by adding it to the first <FilesMatch> directive in the default .htaccess file (.htaccess_root).

I installed a Plain site with a few modules. I'm going to try installing the Plain site with no modules to see if that allows me to get the site up and running.

I'd love to hear of anyone who has been successful getting it to run in a virtual host environment with PHP running as a CGI. My hosting provider, http://www.modwest.com/ is excellent but they are limited in what they can and are willing to provide in terms of an environment.

One other thing: I am using Apache 1.3.27 and I see that upon a new installation, when clicking the Finetune button, eZ Publish will not run on Apache 1.3 with PHP in CGI mode. Apparently, it will run with Apache 2 with PHP in CGI mode. I wonder what the chances are that my hosting provider is going to upgrade to Apache 2 (try slim and none!)

Ted Stresen-Reuter

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 18:17:31
Script start
Timing: Jan 18 2025 18:17:31
Module start 'layout'
Timing: Jan 18 2025 18:17:31
Module start 'content'
Timing: Jan 18 2025 18:17:32
Module end 'content'
Timing: Jan 18 2025 18:17:32
Script end

Main resources:

Total runtime0.9473 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.9063152.6250
Module start 'layout' 0.00620.0035 740.531339.4453
Module start 'content' 0.00980.9362 779.9766528.9063
Module end 'content' 0.94600.0013 1,308.882812.1797
Script end 0.9473  1,321.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3474160.0002
Check MTime0.00140.1527160.0001
Mysql Total
Database connection0.00080.086210.0008
Mysqli_queries0.749679.1296650.0115
Looping result0.00060.0660630.0000
Template Total0.767581.020.3837
Template load0.00220.230120.0011
Template processing0.765380.783620.3826
Template load and register function0.00020.016310.0002
states
state_id_array0.00170.182010.0017
state_identifier_array0.00120.127320.0006
Override
Cache load0.00190.1966330.0001
Sytem overhead
Fetch class attribute can translate value0.00120.122230.0004
Fetch class attribute name0.00090.095750.0002
XML
Image XML parsing0.00030.036630.0001
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00060.0599100.0001
String conversion0.00000.001140.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs