Unsupported PHP version

Author Message

Carl Petter Fiskaaen

Thursday 22 January 2009 3:54:18 am

Hello.
I'm on a Linux machine and have installed PHP 5 and Apache 2. The problem that occours when I'm going to try the index.php file is this message:
"Unsupported PHP version " . phpversion() .
eZ Publish 4.x does not run with PHP 4."

Yet again PHP 5 is installed, so I don't understand why that error would come.
Any suggestions would be nice.

André R.

Thursday 22 January 2009 4:32:12 am

Either php is not activated correctly* or you are using php 4 and you should see a parse error from php if you enable error reporting because php 4 does not support class constants as used by eZ Publish 4.

* If it was correctly activated / loaded as apache module, then the actually php version would have been shown and not 'phpversion()' IF you indeed have the wrong php version.

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

Carl Petter Fiskaaen

Thursday 22 January 2009 7:00:54 am

Thanks for the answer. Yeah, I found that PHP wasn't communicating with Apache and also a package that wasn't needed, but problem is now solved thanks to some help from experts in this field.

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

Main resources:

Total runtime0.5496 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 587.9297152.6250
Module start 'layout' 0.00480.0028 740.554739.4453
Module start 'content' 0.00760.5404 780.0000533.6641
Module end 'content' 0.54800.0015 1,313.664112.1719
Script end 0.5496  1,325.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.6226160.0002
Check MTime0.00140.2622160.0001
Mysql Total
Database connection0.00060.115210.0006
Mysqli_queries0.505391.9452570.0089
Looping result0.00060.1122550.0000
Template Total0.518294.320.2591
Template load0.00210.378720.0010
Template processing0.516193.899720.2580
Template load and register function0.00020.039110.0002
states
state_id_array0.00110.196510.0011
state_identifier_array0.00140.252020.0007
Override
Cache load0.00170.3109150.0001
Sytem overhead
Fetch class attribute can translate value0.00120.224220.0006
Fetch class attribute name0.00100.173640.0002
XML
Image XML parsing0.00070.124220.0003
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00090.1578170.0001
String conversion0.00000.001640.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs