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