Gallery 3 requires PHP 5.2.3 or newer"

skodiyath

Joined: 2009-08-07
Posts: 3
Posted: Fri, 2009-08-07 00:12

I am getting error message 'Gallery 3 requires PHP 5.2.3 or newer" on my Newly installed CentOS 5.

I do have PHP 5.3.0 is running, any one have any idea how to resolve this issue.

PHP 5.3.0 (cli) (built: Aug 4 2009 22:53:27)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies

 
skodiyath

Joined: 2009-08-07
Posts: 3
Posted: Fri, 2009-08-07 00:34

httpd -v
Server version: Apache/2.2.3
Server built: Jul 14 2009 06:04:04

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Fri, 2009-08-07 02:56

There was a issue with php 5.3
https://sourceforge.net/apps/trac/gallery/ticket/194

see if starting over with the experimental version helps:
http://github.com/gallery/gallery3/zipball/master

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7934
Posted: Fri, 2009-08-07 03:35

You're showing PHP 5.3.0 (cli) there. The "cli" means "command line" which implies that you're testing it using something like "php -v". But that doesn't guarantee that the version that your webserver is using is PHP 5.3. Try putting <? phpinfo(); ?> into a .php file and open that in your browser to see what version Apache is using.

edit: I just updated the latest code to report the actual version you're using. Try upgrading (see the link below)
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
skodiyath

Joined: 2009-08-07
Posts: 3
Posted: Sat, 2009-08-08 04:53

I am getting following error when I tried experimental version

Gallery requires PHP 5.2.3 or newer (you're using 5.1.6)

How can I update that?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Sat, 2009-08-08 06:08
Quote:
(you're using 5.1.6)

Quote:
How can I update that?

Upgrade your PHP version.
Ask your host or find a new host.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
forrie

Joined: 2002-08-20
Posts: 69
Posted: Sun, 2009-10-18 18:25

A short note for those curious, RHEL 5.4 does not include php 5.2; it's still at 5.1.

I believe you can have two versions of php running, tho you're going to have to be very careful. For me, unless there's some clever way to manage this, I'm simply going to wait until these OS (RHEL and CentOS et al) adopt 5.2 before I install Gallery3.