LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   upgrade php to 5.2 on centos 5 (http://www.linuxquestions.org/questions/linux-server-73/upgrade-php-to-5-2-on-centos-5-a-4175446957/)

Marcelo_Ramone 01-23-2013 05:22 PM

upgrade php to 5.2 on centos 5
 
Hello,

I'M triyng to upgrade php 5.1 to 5.2 on centos 5.

I enabled the centos-testing repo: http://wiki.centos.org/HowTos/PHP_5.1_To_5.2

But yum can't find any package to upgrade...

Code:

rpm -qa |grep php
php-mbstring-5.1.6-39.el5_8
php-common-5.1.6-39.el5_8
php-xml-5.1.6-39.el5_8
php-xmlrpc-5.1.6-39.el5_8
php-pear-1.4.9-8.el5
php-cli-5.1.6-39.el5_8
php-pdo-5.1.6-39.el5_8
php-soap-5.1.6-39.el5_8
php-gd-5.1.6-39.el5_8
php-mysql-5.1.6-39.el5_8
php-5.1.6-39.el5_8
php-mcrypt-5.1.6-15.el5.centos.1
php-devel-5.1.6-39.el5_8

Code:

yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.serveraxis.net
 * extras: mirror.ubiquityservers.com
 * updates: mirror.nexcess.net
Reducing CentOS-5 Testing to included packages only
Finished
Setting up Update Process
No Packages marked for Update

Code:

yum update php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.serveraxis.net
 * extras: mirror.ubiquityservers.com
 * updates: mirror.nexcess.net
Reducing CentOS-5 Testing to included packages only
Finished
Setting up Update Process
No Packages marked for Update

Code:

cat /etc/yum.repos.d/CentOS-Testing.repo
#CentOS-Testing:
#!!!! CAUTION !!!!
#This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.
#They may or may not replace core CentOS packages, and are not guaranteed to function properly.
#These packages build and install, but are waiting for feedback from testers as to
#functionality and stability. Packages in this repository will come and go during the
#development period, so it should not be left enabled or used on production systems without due
#consideration.
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
includepkgs=php*

Any help please?

kbp 01-24-2013 08:29 PM

If you browse that repository you'll see that there are no php-* packages present, any reason you can't move to CentOS 6 ?

Habitual 01-25-2013 09:52 AM

Upgrade PHP 5.1/5.2 to 5.3 on CentOS

Code:

sudo yum repolist
yum info php5

are 2 great starts.

CentOS "5" what?
Code:

5.0    i386, x86-64    5.0    2.6.18-8    2007-04-12[31]    2007-03-14[32]    28d
5.1    i386, x86-64    5.1    2.6.18-53    2007-12-02[33]    2007-11-07[34]    25d
5.2    i386, x86-64    5.2    2.6.18-92    2008-06-24[35]    2008-05-21[36]    34d
5.3    i386, x86-64    5.3    2.6.18-128    2009-03-31[37]    2009-01-20[38]    69d
5.4    i386, x86-64    5.4    2.6.18-164    2009-10-21[39]    2009-09-02[40]    49d
5.5    i386, x86-64    5.5    2.6.18-194    2010-05-14[41]    2010-03-31[42]    44d
5.6    i386, x86-64    5.6    2.6.18-238    2011-04-08[43]    2011-01-13[44]    85d
5.7    i386, x86-64    5.7    2.6.18-274    2011-09-13[45]    2011-07-21[46]    54d
5.8    i386, x86-64    5.8    2.6.18-308    2012-03-07[47]    2012-02-21[48]    15d
5.9    i386, x86-64    5.9    2.6.18-348    2013-01-17[49]    2013-01-07[50]    10d


Marcelo_Ramone 01-27-2013 01:31 PM

The websites works only with php 5.2.

I finally upgraded with this repository: http://www.jasonlitka.com/yum-repository/


All times are GMT -5. The time now is 08:17 AM.