Forums / Install & configuration / EZ can't decide on PHP version

EZ can't decide on PHP version

Author Message

Albert Venema

Monday 28 April 2008 5:41:59 am

Upon accessing the index.php in my EZPublish 4 directory:

"Unsupported PHP version 5.0.4
eZ Publish 4.x does not run with PHP 4."

Great. So you don't run on PHP 4. Wonderful. Now explain to me why EZ thinks that
(PHP 5.0.4 == PHP 4)

Thomas Koch

Monday 28 April 2008 5:52:35 am

Well, the error message could surely be improved. But the problem is, that your PHP version does not meet the installation requirement.

Please compare
http://ez.no/ezpublish/requirements

There it states, that you need at least PHP 5.1, while PHP 5.2 is recommended.

Best regards, Thomas Koch

---
Thomas Koch | http://koch.ro
YMC - eZ Publish in Switzerland | http://ymc.ch

Brett Young

Thursday 08 May 2008 1:34:07 pm

I had the same error message an I had just installed WAMPServer 2.0c which has PHP V 5.2.6 according to the PHP console and this url: http://www.wampserver.com/en/download.php

what have I done wrong?

ps: I DID install the database first.

André R.

Friday 09 May 2008 1:47:44 am

You downloaded 3.10 or 3.9 that is for PHP 4 and only glanced at the error message before you concluded that you had the same issue as Albert??

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

Brett Young

Friday 09 May 2008 8:15:28 pm

No sir. I downloaded ez V 4 and checked that it wanted version 5 of PHP thus I got the correct version of WAMP for it.

Please dont be patronising!

André R.

Saturday 10 May 2008 8:19:59 am

Sorry, I took a guess and it was one of the possibilities :)
I'm running ezp 4.0 with wamp 2.0b here with no problems, but I'll download PHP 5.2.6 and try it out.

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

Brett Young

Saturday 10 May 2008 1:56:17 pm

possibly its yr avatar that contributes to the tone!!! lol

I used the latest WAMP and when one checks the console for the version number it gives 5.2.6

I also tried downloading and installing ezPublish 3.9 but this also failed with the message that it couldnt run with version 5 of PHP.

so ez V 4 thinks its version 4 PHP and
ez V 3.9 thinks its version 5 of php

Something very wrong here!!!

Im using firefox to run the index.php file in ez for the setup

This is the message I get:
Unsupported PHP version " . phpversion() . "
" ); print( "

eZ Publish 4.x does not run with PHP 4.
". "

André R.

Sunday 11 May 2008 5:51:40 am

used the latest WAMP and when one checks the console for the version number it gives 5.2.6

Console and httpd/web is two different "exe's" in php, so what version info you get in console is not necessary the same as in the webserver. ( And the other way around )
You can see the versioninfo on the index page for wampserver (usually http://localhost/ )

This is the message I get:
Unsupported PHP version " . phpversion() . "
" ); print( "

eZ Publish 4.x does not run with PHP 4.
". "

Looks like php isn't running at all.
Double check by clicking view source in you browser, if you find php code ther, then php is not running (aka your web server serves the php files as any other text file instead of handling the file over to php).

possibly its yr avatar that contributes to the tone!!! lol

Probably, Evil Monkey from "Family guy" is probably a bit cruel.. :)

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

eZ debug

Timing: Jan 18 2025 15:15:01
Script start
Timing: Jan 18 2025 15:15:01
Module start 'content'
Timing: Jan 18 2025 15:15:03
Module end 'content'
Timing: Jan 18 2025 15:15:03
Script end

Main resources:

Total runtime1.7925 sec
Peak memory usage4,096.0000 KB
Database Queries213

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0093 587.8359180.8281
Module start 'content' 0.00931.5716 768.6641678.2969
Module end 'content' 1.58080.2116 1,446.9609340.4453
Script end 1.7924  1,787.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.2373210.0002
Check MTime0.00150.0841210.0001
Mysql Total
Database connection0.00200.113710.0020
Mysqli_queries1.699094.78622130.0080
Looping result0.00310.17052110.0000
Template Total1.752697.820.8763
Template load0.00270.151420.0014
Template processing1.749997.621520.8749
Template load and register function0.00010.008310.0001
states
state_id_array0.00190.104310.0019
state_identifier_array0.00070.041420.0004
Override
Cache load0.00220.1245520.0000
Sytem overhead
Fetch class attribute can translate value0.00110.059750.0002
Fetch class attribute name0.00090.051890.0001
XML
Image XML parsing0.00120.066550.0002
class_abstraction
Instantiating content class attribute0.00000.0011110.0000
General
dbfile0.00310.1725280.0001
String conversion0.00000.001630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 41
 Number of unique templates used: 7

Time used to render debug report: 0.0003 secs