Linux under the PHP fast upgrade 5.2.6 (1) with Yum (2) Recompile installation ____linux

Source: Internet
Author: User
Tags gpg install php

2011-10-31 12:44 because the Linux default Yum source is installed with PHP 5.1 package,

Yum Install php view later

Rpm-qa PHP

Php-5.1.6-23.2.el5_3

because some programs need to use the version above php5.2

so I found the information, finally find the introduction of the following add an additional source:

# Rpm–import Http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
# Gedit/etc/yum.repos.d/utterramblings.repo
or directly modify the/etc/yum.repos.d/utterramblings.repo name to be defined by the. Repo End as Abc.repo

Add the following to the open file:

[ABC]
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

execute yum update php as shown in the figure, # Yum Update php Loaded Plugins:rhnplugin, security This system is not registered with RHN. RHN support would be disabled. Utterramblings | 951 B 00:00 Utterramblings/primary | KB 00:03 utterramblings 140/140 Skipping security plugin, no data Setting up Update Process Resolving Dependencies Skipping security plugin, no data –> Running Transaction Check –> Processing dependency:php = 5.1.6-23.2.el5_3 for Package:php-devel -> Package php.i386 0:5.2.16-jason.1 set to be updated –> Processing Dependency:php-common = 5.2.16-jason.1 for package:php –> Processing dependency:php-cli = 5.2.16-jason.1 for package:php –> Running Transaction Check -> Package php-cli.i386 0:5.2.16-jason.1 set to be updated ..... There is already a new PHP package Karki update ================================================================================ Package Arch Version Repository Size ================================================================================ Updating: PHP i386 5.2.16-jason.1 ABC 3.6 M Installing for dependencies: mysqlclient15 i386 5.0.91-1.jason.1 ABC 2.0 M Updating for dependencies: MySQL i386 5.1.52-jason.1 ABC 3.5 M Mysql-bench i386 5.1.52-jason.1 ABC 502 k Mysql-devel i386 5.1.52-jason.1 ABC K Mysql-server i386 5.1.52-jason.1 ABC M mysql-test i386 5.1.52-jason.1 ABC 7.3 M Php-bcmath i386 5.2.16-jason.1 ABC K PHP-CLI i386 5.2.16-jason.1 ABC 2.6 M Php-common i386 5.2.16-jason.1 ABC 513 k PHP-DBA i386 5.2.16-jason.1 ABC 127 k Php-devel i386 5.2.16-jason.1 ABC 557 k PHP-GD i386 5.2.16-jason.1 ABC 331 k Php-imap i386 5.2.16-jason.1 ABC 108 k Php-ldap i386 5.2.16-jason.1 ABC K php-mbstring i386 5.2.16-jason.1 ABC 1.3 M Php-mysql i386 5.2.16-jason.1 ABC 267 k php-ncurses i386 5.2.16-jason.1 ABC K PHP-ODBC i386 5.2.16-jason.1 ABC 116 k Php-pdo i386 5.2.16-jason.1 ABC 164 k Php-pgsql i386 5.2.16-jason.1 ABC 159 k Php-snmp i386 5.2.16-jason.1 ABC K Php-soap i386 5.2.16-jason.1 ABC 352 k Php-xml i386 5.2.16-jason.1 ABC 328 k PHP-XMLRPC i386 5.2.16-jason.1 ABC 136 k
Transaction Summary ================================================================================ Install 1 Package (s) Update Package (s) Remove 0 Package (s)
Total Download size:37 M Is this OK [y/n]: Y after installation restart Apache view PHP currently installed version # RPM-QA PHP php-5.2.16-jason.1

installation is complete and you can use Php-m to view PHP-supported modules such as]# php-m | grep mysql mysql mysqli pdo_mysql

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.