PHP CGI - Problems and discussion

Author Message

Ethan Schoonover

Tuesday 22 April 2003 8:42:00 pm

I'm posting this as a new thread as I wanted to get a title into the forum for others to spot easily in the hopes we can start actively discussion running ez publish through php.cgi setups.

My hosting company has major restrictions on php as an apache module. base directory restrictions are only the beginning. however php-cgi is fully accessible and would seem to be fine, except that, according to multiple other posts in this forum, ez publish does not run under phpcgi properly.

The problems when trying to run via php.cgi seem to vary, but most seem to result in failure. My installation attempts when running via php-cgi result in not being able to get off of the main page (as myself and other posters have noted elsewhere in this forum).

QUESTION 1:
Has anyone had any success running via php.cgi

QUESTION 2:
What is the difference between php-cgi and php as a module that would break ez pub? Permissions? I'm exploring this, but a dialogue on this point might be helpful.

Tray Broda

Thursday 24 April 2003 5:27:15 pm

I have to admit... I am concerned with the lack of discussion on this topic that clearly seems to affect many of us. Specifically, the lack of addressing this known bug/problem by the ez staff. Is anyone watching these threads??

-T

Jan Borsodi

Thursday 24 April 2003 11:16:46 pm

The open_basedir problem is explained here:
http://ez.no/developer/ez_publish_3/forum/install_configuration/open_basedir_problems

As for running eZ publish under php-cgi we've never tried this here. Could you give some instructions on how to run PHP as cgi?

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Tray Broda

Friday 25 April 2003 8:05:38 am

I am running apache as a module (Apache2) with the most recent version of PHP (4.3.2RC1) and I still am encountering the same problem.

I get the admin logon screen, and eneter the admin/publish... It tries to take me to:

http://www.sitename.com/ezpublish/index.php/admin/user/login/

To which I get a 404 page can not be found error.

Any ideas?

The debug tracker is on, and on the logon page I have:

Timing: Apr 25 2003 11:09:56
Script start
Timing: Apr 25 2003 11:09:56
Module start 'user'
Timing: Apr 25 2003 11:09:56
Module end 'user'
Timing: Apr 25 2003 11:09:56
End

So nothing wrong there.

Please help!

-T

Ethan Schoonover

Tuesday 29 April 2003 8:37:27 am

Information on running PHP as CGI can be found at:

http://www.php.net/manual/en/security.cgi-bin.php

Note that this isn't too uncommon; as Tray notes, many of us face this on virtual hosting environments.

To be frank, at the end of the day I couldn't, despite many hours invested, solve this issue. I've installed an alternate CMS to manage my personal site as it was sufficient, in most ways, for the job. I still use ezpub on sites for clients as I can install 3.x on my company's dedicated host.

Tray Broda

Tuesday 29 April 2003 3:38:32 pm

Ethan-

It is unfortunate that this has not been solved, as I, too, have switched to an alternate CMS, and can not in the foreseeable future see changing to EZ, given the time sink in setting up a website. I was at a pivotal point in my client architecture/changeover system, which would have made a switch to an alternate CMS doable.... That point has passed now - and I, unfortuantely, see EZPublish in the rear view mirror... as I move forward....

It's sad... I was hoping to utilize this system as I had heard such great things about it.

-T

BTW: Which CMS did you end up choosing?

Jim Porter

Thursday 08 May 2003 5:17:16 am

I too have this problem running on IIS 5.1 on XP. Can't seem to get past whatever page I set as default.

Is there an answer to this one or should I stop wasting my time and move on as the last two posters did?

Jim

Karsten Jennissen

Thursday 08 May 2003 5:30:55 am

Before you move you should try setting the PHP memory limit to more than 8MB to rule out that this causes the problem. Try 16MB or even more.

See
http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/typical_problems_and_solutions/not_enough_php_memory

Karsten

Ricky THomas

Monday 22 September 2003 3:06:59 pm

Question :: has the PHP CGI problems been resolved in ez 3.2 ? or does the patch still work in 3.2 ?

http://ez.no/developer/ez_publish_3/forum/install_configuration/my_final_patch_for_phpcgi

Idea :: Could I try this to get around the " initial " large amount of memory need by ezpublish.

Install ezpublish on another machine then move the folder and the database to my virtual host? are there any issues with doing that?

thanks

Ron Haines

Wednesday 16 March 2011 9:50:24 am

Ricky that link does not work any longer.

I think it's unfortunate when developers chose to censor a problem rather than fix it.

History has proven that it is not healthy for an web application, or any other application for that matter, to take a position of telling end users to change their systems instead of working for wide scope compatibility.

PHP in CGI mode is actually not all that uncommon that it shouldn't be addressed here. Furthermore, the only link I could find to a patch (your link above) which could provide a starting point for fixing this problem has been removed from the forums.

All in all this is very frustrating.

The past is past and cannot be changed, while the future is shaped by action taken in the present.

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 04:55:19
Script start
Timing: Jan 18 2025 04:55:19
Module start 'layout'
Timing: Jan 18 2025 04:55:19
Module start 'content'
Timing: Jan 18 2025 04:55:20
Module end 'content'
Timing: Jan 18 2025 04:55:20
Script end

Main resources:

Total runtime0.8250 sec
Peak memory usage4,096.0000 KB
Database Queries88

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0106 588.0391152.6406
Module start 'layout' 0.01060.0049 740.679739.4766
Module start 'content' 0.01550.8079 780.1563792.2188
Module end 'content' 0.82340.0015 1,572.375020.7656
Script end 0.8249  1,593.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4779160.0002
Check MTime0.00180.2155160.0001
Mysql Total
Database connection0.00240.294110.0024
Mysqli_queries0.724087.7608880.0082
Looping result0.00110.1313860.0000
Template Total0.772493.620.3862
Template load0.00240.290220.0012
Template processing0.770093.333120.3850
Template load and register function0.00050.057710.0005
states
state_id_array0.00260.316410.0026
state_identifier_array0.00070.084420.0003
Override
Cache load0.00200.2472690.0000
Sytem overhead
Fetch class attribute can translate value0.00110.129770.0002
Fetch class attribute name0.00150.1804120.0001
XML
Image XML parsing0.00410.491270.0006
class_abstraction
Instantiating content class attribute0.00000.0027120.0000
General
dbfile0.00871.0566230.0004
String conversion0.00000.001440.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
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 33
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs