Installed php version

6 posts / 0 new
Last post
#1 Sat, 06/27/2009 - 18:27
marciano

Installed php version

Because of hijacking problems with my fedora8 and php 5.2.6 I was suggested to upgrade to a new server with a new OS and latest stable software
From Virtualmin install.sh in my new server I have

# php --version
PHP 5.1.6 (cli) (built: Apr 7 2009 08:00:04)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
---------------------
# mysql --version
mysql Ver 14.12 Distrib 5.0.45, for redhat-linux-gnu (i686) using readline 5.0

and this is the version I have in my old server from july 2008

# php --version
PHP 5.2.6 (cli) (built: May 8 2008 08:53:44)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
----------------------
# mysql --version
mysql Ver 14.12 Distrib 5.0.45, for redhat-linux-gnu (i386) using readline 5.0

1) I don't understand how PHP 5.1.6 is built in Apr 2009 and 5.2.6 is built in May 2008
2) Why such old php version? The stable one is the 5.2.10
3) How can it be upgraded from Webmin? I have downloadad phpMyAdmin ver 3.2.0 and it requires php 5.2.0 !! I would expect to upgrade to 5.2.8 at least!

Thank you

PS:
I found these but I'm not sure what to do
http://www.webtatic.com/blog/2009/06/php-529-on-centos-5/
http://blog.famillecollet.com/post/2009/06/21/php-5.2.10-1-en
and this one!
http://www.virtualmin.com/documentation/id,virtualmin_bleeding_edge_pack...
Here you have php5.2.9
From initial installation I see these packages
php php-domxl php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring
So I suppose that it will be better to upgrade all of them.
That would be enough?

PS2: this forum is extremely slow (1+ minute to load a page) (maybe because of ssl) while other parts of your site works in regular mode

Sat, 06/27/2009 - 21:22
Joe
Joe's picture

You first want to read this:

http://www.virtualmin.com/documentation/id,frequently_asked_questions/#w...

You're trying to fight with the RHEL/CentOS packaging policy, and that way lies madness.

2) Why such old php version? The stable one is the 5.2.10

That just came out! I haven't had time to package it for the bleeding edge repo yet. PHP is a beast to package. It'll be there soon.

--

Check out the forum guidelines!

Sun, 06/28/2009 - 08:44
marciano

Well, I don't understand it very much.
I was suggested to have updated software to avoid intruders and I am going backwards with php.
I suppose that new versions not necessarily mean better security, it would be new holes.
Let's say I keep quiet in 5.1.6 php version. I don't need the latest version of phpMyAdmin, an older one according to 5.1.6 would be fine.
Anyway I am worrying about some commands I am using in 5.2.6 that doesn't exist in 5.1.6
Do you know where to find that information?
I couldn't find anything about the history of the commands, on which version were they created.
Thank you

PS: They are 'functions' not 'commands' !!
http://www.php.net/manual/en/migration52.functions.php

Sun, 06/28/2009 - 15:40 (Reply to #3)
Joe
Joe's picture

Well, I don't understand it very much. I was suggested to have updated software to avoid intruders and I am going backwards with php.

The packages provided by Red Hat or CentOS have security and bugfix patches backported from the mainline PHP version. The benefit RHEL and CentOS provides is a stable platform for building upon. They commit to not changing the version in incompatible ways. So, the version that was the latest on the day when RHEL 5.0 went "gold" is the version that will always be in all versions of RHEL/CentOS 5.x. It will only get security and stability fixes, and always in backward compatible ways.

I suppose that new versions not necessarily mean better security, it would be new holes.

Not really. That isn't the point. PHP generally gets more secure over time (as most Open Source software does), but new exploits are being discovered all the time, as well. RHEL/CentOS backport the fixes to those problems, without bringing along a whole new PHP version.

The RHEL packaging policy is pretty well-documented (as well as a lot of other useful stuff) at Red Hat's site; likewise CentOS at the CentOS site.

If you need the latest version, we provide it in our bleeding edge repo. It is the version shipped from php.net, with a few patches to make it fit the RHEL/CentOS packaging guidelines.

--

Check out the forum guidelines!

Sun, 06/28/2009 - 13:08
marciano

About the slowness. I was using FF2. At FF3 no problems.

Sun, 06/28/2009 - 16:16
marciano

Okay, thanks Joe. I've seen new functions in 5.2 versions and seems I would not have problems using 5.1.6 so I suppose it would be better to be quiet. I was afraid about mbstring functions but happily none of those new am I or my programs using.

Topic locked