PHP5 in centosplus is old

Support for webhosts that use CentOS
Post Reply
addw
Posts: 31
Joined: 2005/10/23 14:11:29
Location: England
Contact:

PHP5 in centosplus is old

Post by addw » 2006/10/07 16:15:08

The version on PHP5 in centosplus is 5.0.4, this came out in March 2005, followed by 5.0.5 in Sept 2005.
The current version is 5.1.6 that came out in August 2006. Is there any reason why we are not up to date ?
In particular APC (a php accellerator) does not support php 5.0 - but doesphp 5.1.

Cheers

BobCochran
Posts: 18
Joined: 2006/09/23 22:30:35
Contact:

Re: PHP5 in centosplus is old

Post by BobCochran » 2006/10/08 01:52:26

[size=120][font=Arial]I'm interested in this as well. Is this because there are no maintainers available to update PHP?

Thanks

Bob Cochran
[/font][/size]

jasonxoxide
Posts: 80
Joined: 2006/09/11 14:35:48
Location: Exton, PA
Contact:

Re: PHP5 in centosplus is old

Post by jasonxoxide » 2006/10/09 01:02:15

As to why the version was not upgraded from 5.0.4 to the newer releases, my guess is that those RPMs are just rebuilt from the FC4 versions. Since FC4 never went past 5.0.4, neither did CentOS-extras.

There is, however, nothing from stopping you from rebuilding the php and php-pear src.rpms from FC5.

If you'd like to upgrade to httpd 2.2.2 as well then you'll need their version of apr, apr-util, and pcre as there are some dep issues with that one... The spec file for httpd will also require one small change if you're not using gcc 4.

EDIT: Oh, and eaccelerator works just fine under PHP 5.0.4, you might use it instead.

dhonsvick
Posts: 2
Joined: 2006/10/07 06:06:31
Contact:

Re: PHP5 in centosplus is old

Post by dhonsvick » 2006/10/16 17:50:59

I am also running PHP 5.0.4 However if I do a php --version it states I am running version 4.4.3 phpinfo() states version 5.0.4. While trying to install phpontrax ... its states 4.4.3. HAs anyone else noticed this behavior?

karlkatzke
Posts: 9
Joined: 2005/02/19 01:33:59
Contact:

Re: PHP5 in centosplus is old

Post by karlkatzke » 2006/10/24 17:18:59

With a little bit of effort and some knowledge of rpmbuild, you can download the necessary SRPMs from Fedora Core 5, build them on your distro (Don't try to use RPMs from FC5, as they're built with GCC4 and CentOS is using GCC 3.4.6 ... and a GCC update is just ASKING for trouble).

You'll need:
- Apache 2.0 or 2.2 -devel SRPMs
- APR and APRLIB SRPMs from FC5
- PCRE SRPMs from FC5
- PHP 5.1.2 and PHP-PEAR SRPMs from FC5.
- An updated spec file that has your desired packages/options in it, and with one CFLAG removed.

The only thing you really need to change is the PHP spec file. I did a quickie writeup on my blog... http://karlkatzke.com/php-51-on-centos-4/ ... if anyone would like me to expand it and make it more detailed, let me know.

jasonxoxide
Posts: 80
Joined: 2006/09/11 14:35:48
Location: Exton, PA
Contact:

Re: PHP5 in centosplus is old

Post by jasonxoxide » 2006/10/25 17:41:58

[quote]
jasonxoxide wrote:
As to why the version was not upgraded from 5.0.4 to the newer releases, my guess is that those RPMs are just rebuilt from the FC4 versions. Since FC4 never went past 5.0.4, neither did CentOS-extras.

There is, however, nothing from stopping you from rebuilding the php and php-pear src.rpms from FC5.

If you'd like to upgrade to httpd 2.2.2 as well then you'll need their version of apr, apr-util, and pcre as there are some dep issues with that one... The spec file for httpd will also require one small change if you're not using gcc 4.

EDIT: Oh, and eaccelerator works just fine under PHP 5.0.4, you might use it instead.[/quote]

I just rebuilt the FC6 RPMs for all of the packages I listed above. They all go through without a hitch except that the init script for httpd needs a minor change in order to actually be able to stop httpd.

Post Reply

Return to “CentOS 4 - Webhosting Support”