Error 500 Internal server error, and the URLs in EZP

Author Message

jose rubio

Sunday 21 September 2003 2:01:06 pm

I get this error trying to access de user or admin sites, not during installation.

In my system: CGI php 4.3.3 with apache 1.3.27, I have dicovered that the cause is the way the url are formed.
Any url with the form

www.site.com/script.php/something.

causes error 500, so EZP causes error 500 on all the links. If i use script.pgp?/something (note the ?) I do not get error 500

The cause behind this is unknown for me. (Maybe something related with CGI?) With Apache module it goes OK, but in my remote server with Ensim I cannot use module

On other site hosted in modwest.com (mtbcomprador.com) the server not causes error 500 but all the links are broken. Try
http://www.mtbcomprador.com/index.php/ghg

Any idea about the cause?

Bård Farstad

Monday 02 February 2004 11:59:28 pm

The reson for this is that eZ publish does not support PHP running in CGI mode. There are some patches available in this forum, but we do not guarantee that it will work.

--bård

Documentation: http://ez.no/doc

Gustave Stresen-Reuter

Monday 12 July 2004 9:25:07 am

Thanks for the info that CGI is not supported. Could you go into any detail as to why it is not supported? My guess is that eZ Publish needs some sort of unrestricted access to the file system or Apache and in CGI mode, PHP runs as it's own user (usually quite separate from the rest of the system) while running as a module, it shares Apache's user.

Finding a resolution would be very helpful as many hosting providers will only run PHP as a module in safe mode (useless, I think, or can eZ Publish run fine in safe mode?).

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

Main resources:

Total runtime0.0151 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.3828151.2422
Module start 'layout' 0.00500.0031 739.625036.7109
Module start 'content' 0.00820.0056 776.335990.2188
Module end 'content' 0.01380.0013 866.554733.9922
Script end 0.0151  900.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002113.9528140.0002
Check MTime0.00106.5538140.0001
Mysql Total
Database connection0.00063.988110.0006
Mysqli_queries0.003523.447530.0012
Looping result0.00000.171910.0000
Template Total0.00106.310.0010
Template load0.00084.980010.0008
Template processing0.00021.289910.0002
Override
Cache load0.00053.399910.0005
General
dbfile0.00138.651180.0002
String conversion0.00000.045740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs