Error 500 on install (hosted site)

Author Message

David Van Beveren

Thursday 09 November 2006 9:41:46 am

I am attempting to add eZ Publish to our hosted site. The installation goes fine up to the point where the installation completes and I am presented with the option to go to the user page or to the admin page. I click either and get an Error 500 from the HTTP server.

If I reload this page I get the same error 500.

I do not have access to the http server error log, so I cannot get more information than this.

I followed the defaults and selected a news_site as the template. I have done this twice (scrubbing the ezpublish tree and reloading a fresh install in between) and seen the exact same behavior both times. The install suggests that I should create a .htaccess file in order to improve security. I have not done this.

Our ISP has PHP4 and PHP5 installed. I believe the PATH environment variable might be pointing to php5 first, though I cannot verify this yet. Can someone tell me how via .htaccess maybe I can explicitly tell the server to invoke the php4 executable, provided I know where in the filesystem this resides? I would have thought it would be via an AddHandler directive though I cannot get it to work.

Claudia Kosny

Thursday 09 November 2006 10:43:01 am

Hi David

Usually it is not possible to select which executable you want on a per directory basis on shared hosting service unless you have a really good provider. I have seen a few times that you can specify in the administration of your site for which file extensions which php version should be used so check whether you find any setting there.

The easiest way to find out which php version is running is to upload a phpinfo file. Just create a textfile named phpinfo.php with the following content:

<?php
phpinfo();
?>

Upload the file and call it in your browser. You will get loads of information, the PHP version is right at the top.

Good luck

Claudia

David Van Beveren

Saturday 11 November 2006 1:44:16 am

The phpinfo() call shows I am running 4.4.4. (Thanks for that!). It also shows the memory limit configured to 80MB.

So I am running out of ideas. I am running php 4.4.4, and MySql4, and I did a completely middle of the road install (just chose the default values). Where do I start looking at what is causing the error 500 as soon as the installation is finished?

Many of the other php scripts in the installation run without error.

I wonder is there a list of the files that get modified when the installation / setup is performed?

If I had this I could also easily revert to the unconfigured version without uploading the whole 40MB? I cannot upload a single tarball and extract it (I have no shell access).

Thanks for everyone's help. I see from reading the archive that this is not a totally unique problem, though a lot of the hints in the other threads suggest modifying the .htaccess file. I have no .htaccess file in my top-level directory.

David Van Beveren

Saturday 11 November 2006 2:22:30 am

Here is one possible reason for the failure. My ISP is running a fairly secure system, and files with world writeable permissions are deemed insecure and thus not opened. If a php script tries to open a file which is world writeable, the suExec environment stops the script and returns error 500.

I noticed that the file var/news_site/storage.log has perms set tp 666. I'm going to turn off the world writeable bit and see if things improve. However, I am wondering what the root cause of this might be, and if the umask for such files might be changeable somewhere, or if this might be considered a bug.

Any other insight is really appreciated!

dvb

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

Main resources:

Total runtime0.8952 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 588.0391152.6406
Module start 'layout' 0.00730.0038 740.679739.4766
Module start 'content' 0.01110.8825 780.1563484.7344
Module end 'content' 0.89360.0015 1,264.890612.1406
Script end 0.8951  1,277.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3530160.0002
Check MTime0.00140.1511160.0001
Mysql Total
Database connection0.00280.313310.0028
Mysqli_queries0.840693.8973600.0140
Looping result0.00060.0718580.0000
Template Total0.858595.920.4292
Template load0.00250.277020.0012
Template processing0.856095.618720.4280
Template load and register function0.00020.019410.0002
states
state_id_array0.00070.075310.0007
state_identifier_array0.00160.177820.0008
Override
Cache load0.00160.1833280.0001
Sytem overhead
Fetch class attribute can translate value0.00080.091720.0004
Fetch class attribute name0.00290.318840.0007
XML
Image XML parsing0.00040.043720.0002
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00080.0846100.0001
String conversion0.00000.000840.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs