Yum upgrade PHP to 5.2

Source: Internet
Author: User
Tags gpg
Method One-------------------------------------------------------------------------------


Vim/etc/yum.repos.d/utterramblings.repo

Input

[Utterramblings]
Name=jason ' s utter ramblings Repo
baseurl=http://www.jasonlitka.com/media/el$releasever/$basearch/
Enabled=1
Gpgcheck=1
Gpgkey=http://www.jasonlitka.com/media/rpm-gpg-key-jlitka


At last

Yum Update php-y

Now I'm using it this way, after the upgrade version
php-5.2.11

httpd-2.2.14

Method Two-------------------------------------------------------------------------------

Yum upgrades mysql5.1 and php5.2 (prohibit php5.3)



Install Rpmforge for Yum:
Http://wiki.centos.org/AdditionalResources/Repositories/RPMForge

Yum list MySQL PHP discovery is the latest version, it appears that the standard Yum source is not updated

wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
wget http://rpms.famillecollet.com/el5.i386/remi-release-5-7.el5.remi.noarch.rpm
RPM-UVH remi-release-5-7.el5.remi.noarch.rpm epel-release-5-3.noarch.rpm
Yum--enablerepo=remi list MySQL

Discovery can be upgraded to MySQL 5.1.44-1.el5.remi

Yum--enablerepo=remi update MySQL

The discovery needed to upgrade PHP to 5.3,
Zend Optimizer currently does not support Php5.3, so the upgrade needs to be banned php5.3

Vi/etc/yum.conf

Add last line

exclude=php*5.3*

Then yum--enablerepo=remi update MySQL, you will not see the upgrade of PHP

# MYSQL-V upgraded to 5.1.44
MySQL Ver 14.14 distrib 5.1.44, for Redhat-linux-gnu (i686) using ReadLine 5.1

After MySQL 5.1.41-1,?? The following lines:
(1) The original/etc/my.cnf,/etc/my.cnf.rpmnew change my.cnf
(2) L table
Mysql_upgrade-p
(3) Self-repairing table
Mysqlcheck--all-databases--check-upgrade--auto-repair-p


Find a Yum source, with php5.2, as follows:
http://www.webtatic.com/blog/2009/06/php-530-on-centos-5/

RPM--import Http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy
Wget-p/etc/yum.repos.d/http://repo.webtatic.com/yum/webtatic.repo
Yum--enablerepo=webtatic list PHP
Found php5.2 and php5.3 can be upgraded,

We prohibit upgrade php5.3
Vi/etc/yum.conf
Add last line
exclude=php*5.3*

Or:
Yum--enablerepo=webtatic--exclude=php*5.3* list php

Yum--enablerepo=webtatic--exclude=php*5.3* update-y php

[Root@www.ctohome.com backup]# Php-v
PHP 5.2.12 (CLI) (Built:dec 17 2009 19:40:56)
Copyright (c) 1997-2009 the PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
With Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
With Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.