Topic: How to Upgrade to PHP 5.2.10 on CentOS5 x64?

Hi,

I'm trying to upgrade my PHP version on a CentOS 5 box but it seems to stop at a warning. Here's what I've done so far:

1. Installed the epel and remi repos per the Repo Config guide posted by remi

2. Copied http://rpms.famillecollet.com/remi-enterprise.repo into /etc/yum.repos.d

3. Output from running yum update is below:

# yum --enablerepo=remi --enablerepo=epel --disablerepo=rpmforge --disableplugin=priorities update php php-pdo php-imap php-xml php-xmlrpc php-gd php-odbc
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * epel: mirrors.rit.edu
 * remi: iut-info.univ-reims.fr
 * updates: mirrors.greenmountainaccess.net
 * base: ftp.lug.udel.edu
 * addons: mirror.skiplink.com
 * extras: ftp.lug.udel.edu
Excluding Packages in global exclude list
Finished
Setting up Update Process
Resolving Dependencies
<snip>
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 php-common              x86_64     5.2.10-1.el5.remi  remi              269 k
     replacing  php-json.x86_64 5.1.6_1.2.1-1.aurore

Updating:
 php                     x86_64     5.2.10-1.el5.remi  remi              1.3 M
 php-cli                 x86_64     5.2.10-1.el5.remi  remi              2.4 M
 php-gd                  x86_64     5.2.10-1.el5.remi  remi              126 k
 php-imap                x86_64     5.2.10-1.el5.remi  remi               55 k
 php-odbc                x86_64     5.2.10-1.el5.remi  remi               54 k
 php-pdo                 x86_64     5.2.10-1.el5.remi  remi               95 k
 php-xml                 x86_64     5.2.10-1.el5.remi  remi              121 k
 php-xmlrpc              x86_64     5.2.10-1.el5.remi  remi               56 k
Installing for dependencies:
 libXaw                  x86_64     1.0.2-8.1        base              329 k
 libXmu                  x86_64     1.0.2-5          base               63 k
 sqlite2                 x86_64     2.8.17-2.el5.remi  remi              166 k
 t1lib                   x86_64     5.1.1-7.el5      epel              208 k
Updating for dependencies:
 php-devel               x86_64     5.2.10-1.el5.remi  remi              582 k

Transaction Summary
=============================================================================
Install      5 Package(s)
Update       9 Package(s)
Remove       0 Package(s)

Total download size: 5.7 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction

WARNING : This php-* RPM are not official Fedora build and
overrides the official ones. Don't file bugs on Fedora Project.

Use dedicated forums http://forums.famillecollet.com/

After that warning, I see that php hasn't really updated:

# php -v
PHP 5.1.6 (cli) (built: Apr  7 2009 08:00:18)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

Could someone help me figure out what I'm doing wrong?

Re: How to Upgrade to PHP 5.2.10 on CentOS5 x64?

This warning is only a warning I have add to inform user that this is not an official RPM.

What does yum output after this ?

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: How to Upgrade to PHP 5.2.10 on CentOS5 x64?

Remi - yum exits immediately after the warning. There are no other messages.

After yum exits, checking php -v shows that the update hasn't occurred. I rebooted the server as well but that does not help either.

Re: How to Upgrade to PHP 5.2.10 on CentOS5 x64?

I never encountered this issue before...
Is your system updated ?

try to install the downloaded RPM manually (should stored in /var/cache/yum/remi/packages).
All in a single transaction

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: How to Upgrade to PHP 5.2.10 on CentOS5 x64?

Hi remi,

Looking at the yum install log above, I noticed that a few packages namely libXaw, libXmu and t1lib did not have RPMs in the path you have mentioned.

I first installed these, followed by the sqlite RPMs and finally all the php RPMs. The installation went off without a hitch and I'm now running PHP 5.2.10

I was trying to install this on a VPS, so I can't really take the risk of running yum update for fear of breaking something.

Re: How to Upgrade to PHP 5.2.10 on CentOS5 x64?

Hi,

You can get the packages for php-5.2.10-1 from here.
But I think you should go with 5.2.17 if you absolutely need to use php-5.2.x. See the Changelog for any updates between those versions that might brake your development environment.

Regards