Hi,

I'm trying to update PHP.

When I do:

yum install php54 php54-php-cli php54-php-mysql php54-php-gd

I get the following response:

Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: ftpmirror.your.org * base: mirrors.gigenet.com * extras: mirror.nexcess.net * updates: centosk3.centos.org http://people.redhat.com/rcollet/php54/rhel/5/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: php54. Please verify its path and try again

Have I done something wrong?

I used instructions from: http://www.virtualmin.com/documentation/web/multiplephp

Regards,

Martyn

Status: 
Active

Comments

Our apologies -- shortly after we added those instructions, that particular repository began only supporting 64bit CentOS.

It looks like you have 32bit CentOS there, and they unfortunately aren't currently providing PHP packages for that.

Ah OK that makes sense.

So I am on PHP/5.2.17, how would I go about getting up to 5.3?

On CentOS 5 -- newer versions have begun providing PHP 5.3 packages.

They're named "php53-", rather than the existing "php-" packages you have.

You could see them all by running this command:

rpm -qa | grep php53

To install them, you would first need to remove the existing php-* packages, and then replace them with the corresponding php53-* package.