update php on CentOS

All your question about php
Post Reply
mister_v
Posts: 199
Joined: Thu Mar 04, 2010 9:19 pm

update php on CentOS

Post by mister_v »

Hi,

I want to update my php-version on CentOS Linux.
But when I do the update command I says that there are no updates

Code: Select all

# yum update php
Could not find update match for php
No Packages marked for Update/Obsoletion
But I only have version php 5.1.6,
And I known that there are newer version out there.

Code: Select all

# php -v
PHP 5.1.6 (cli) (built: Jul 31 2008 00:08:07) 
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
chris
Site Admin
Posts: 205
Joined: Mon Jul 21, 2008 9:52 am

Re: update php on CentOS

Post by chris »

You can find a complete explanation here:
http://blog.famillecollet.com/pages/Config-en

In short:
You have to install EPEL:

Code: Select all

wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
rpm -Uvh epel-release-5*.rpm
Then set the Remi repository:

Code: Select all

cd /etc/yum.repos.d
wget http://rpms.famillecollet.com/fedora/remi.repo
When you have done that you can do the update:
As the remi dipository isn't enabled by default, you have to enable it.

Code: Select all

yum --enablerepo remi update php
yum --enablerepo remi update mysql
mister_v
Posts: 199
Joined: Thu Mar 04, 2010 9:19 pm

Re: update php on CentOS

Post by mister_v »

Hello,

I did the steps you set, but got the following error messages:
--> Finished Dependency Resolution

Code: Select all

Error: Missing Dependency: libssl.so.5 is needed by package php
Error: Missing Dependency: libcrypto.so.5 is needed by package php
Error: Missing Dependency: libssl.so.5 is needed by package php-common
Error: Missing Dependency: libcrypto.so.5 is needed by package php-common
Error: Missing Dependency: libreadline.so.5 is needed by package php-cli
Error: Missing Dependency: libcrypto.so.5 is needed by package php-cli
Error: Missing Dependency: libkrb5support.so.0 is needed by package php-common
Error: Missing Dependency: libhistory.so.5 is needed by package php-cli
Error: Missing Dependency: libssl.so.5 is needed by package php-cli
Error: Missing Dependency: libsqlite.so.0 is needed by package php-pdo
Error: Missing Dependency: libssl.so.5 is needed by package php-mysql
Error: Missing Dependency: libcrypto.so.5 is needed by package php-mysql
Error: Missing Dependency: libssl.so.5 is needed by package mysql-libs
Error: Missing Dependency: libcrypto.so.5 is needed by package mysql-libs
Error: Missing Dependency: libcrypto.so.5 is needed by package mysql-server
Error: Missing Dependency: libssl.so.5 is needed by package mysql
Error: Missing Dependency: libssl.so.5 is needed by package mysql-server
Error: Missing Dependency: libcrypto.so.5 is needed by package mysql
Error: Missing Dependency: libcrypto.so.5 is needed by package mysqlclient15
Error: Missing Dependency: libssl.so.5 is needed by package mysqlclient15
Post Reply