Centos(linux) 简单方法升级php到php5.2.6 mysql5.1.58

原创 2012年03月28日 09:20:19

Centos系统软件仓中的php没有更新还是保持了5.1.6

如果不想手动编译php,但是官方的yum源里面没有

所以要手动添加一个源

 

添加一个额外的源:

 rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

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

(如果没有这个文件新加上)

在打开的文件中加入以下内容:

[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

保存

 

 yum update php

Loading “fastestmirror” plugin

Loading mirror speeds from cached hostfile

* utterramblings: www.jasonlitka.com

* base: centos.candishosting.com.cn

* updates: ftp.hostrino.com

* addons: ftp.hostrino.com

* extras: ftp.hostrino.com

utterramblings 100%|=========================| 951 B 00:00

primary.xml.gz 100%|=========================| 68 kB 00:02

utterrambl:################################################## 230/230

Setting up Update Process

Resolving Dependencies

> Running transaction check

> Package php.i386 0:5.2.6-jason.1 set to be updated

> Processing Dependency: php-common = 5.2.6-jason.1 for package:php

> Processing Dependency: php-cli = 5.2.6-jason.1 for package: php

> Running transaction check

> Package php-cli.i386 0:5.2.6-jason.1 set to be updated

> Package php-common.i386 0:5.2.6-jason.1 set to be updated

> Processing Dependency: php-common = 5.1.6-20.el5_2.1 forpackage: php-gd

> Processing Dependency: php-common = 5.1.6-20.el5_2.1 forpackage: php-ldap

> Processing Dependency: php-common = 5.1.6-20.el5_2.1 forpackage: php-pdo

> Processing Dependency: php-common = 5.1.6-20.el5_2.1 forpackage: php-mysql

> Processing Dependency: php-common = 5.1.6-20.el5_2.1 forpackage: php-mbstring

> Processing Dependency: php-common = 5.1.6-20.el5_2.1 forpackage: php-xml

> Running transaction check

> Package php-mysql.i386 0:5.2.6-jason.1 set to be updated

> Package php-mbstring.i386 0:5.2.6-jason.1 set to be updated

> Package php-ldap.i386 0:5.2.6-jason.1 set to be updated

> Package php-gd.i386 0:5.2.6-jason.1 set to be updated

> Package php-xml.i386 0:5.2.6-jason.1 set to be updated

> Package php-pdo.i386 0:5.2.6-jason.1 set to be updated

> Finished Dependency Resolution

 

Dependencies Resolved

 

=============================================================================

Package Arch Version Repository Size

=============================================================================

Updating:

php i386 5.2.6-jason.1 utterramblings 3.7 M

php-cli i386 5.2.6-jason.1 utterramblings2.6 M

php-common i386 5.2.6-jason.1utterramblings 481 k

Updating for dependencies:

php-gd i386 5.2.6-jason.1 utterramblings320 k

php-ldap i386 5.2.6-jason.1 utterramblings56 k

php-mbstring i386 5.2.6-jason.1utterramblings 1.3 M

php-mysql i386 5.2.6-jason.1 utterramblings258 k

php-pdo i386 5.2.6-jason.1 utterramblings159 k

php-xml i386 5.2.6-jason.1 utterramblings316 k

 

Transaction Summary

=============================================================================

Install 0 Package(s)

Update 9 Package(s)

Remove 0 Package(s)

 

Total download size: 9.1 M

Is this ok [y/N]: y

Downloading Packages:

(1/9): php-5.2.6-jason.1. 100%|=========================| 3.7 MB 02:35

(2/9): php-pdo-5.2.6-jaso 100%|=========================| 159 kB 00:05

(3/9): php-common-5.2.6-j 100%|=========================| 481 kB 00:15

(4/9): php-xml-5.2.6-jaso 100%|=========================| 316 kB 00:06

(5/9): php-cli-5.2.6-jaso 100%|=========================| 2.6 MB 01:36

(6/9): php-gd-5.2.6-jason 100%|=========================| 320 kB 00:10

(7/9): php-ldap-5.2.6-jas 100%|=========================| 56 kB 00:03

(8/9): php-mbstring-5.2.6 100%|=========================| 1.3 MB 00:41

(9/9): php-mysql-5.2.6-ja 100% |=========================|258 kB 00:06

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

Updating : php-common####################### [ 1/18]

Updating : php-pdo #######################[ 2/18]

Updating : php-cli #######################[ 3/18]

Updating : php-mysql####################### [ 4/18]

Updating : php-mbstring####################### [ 5/18]

Updating : php-ldap #######################[ 6/18]

Updating : php-gd ####################### [7/18]

Updating : php-xml #######################[ 8/18]

Updating : php ####################### [9/18]

Cleanup : php-mysql #######################[10/18]

Cleanup : php-mbstring####################### [11/18]

Cleanup : php-ldap ####################### [12/18]

Cleanup : php-gd #######################[13/18]

Cleanup : php-cli #######################[14/18]

Cleanup : php-xml #######################[15/18]

Cleanup : php-common####################### [16/18]

Cleanup : php-pdo #######################[17/18]

Cleanup : php #######################[18/18]

 

Updated: php.i386 0:5.2.6-jason.1php-cli.i386 0:5.2.6-jason.1 php-common.i386 0:5.2.6-jason.1

Dependency Updated: php-gd.i3860:5.2.6-jason.1 php-ldap.i386 0:5.2.6-jason.1 php-mbstring.i386 0:5.2.6-jason.1php-mysql.i386 0:5.2.6-jason.1 php-pdo.i386 0:5.2.6-jason.1 php-xml.i3860:5.2.6-jason.1

Complete!

service httpd restart

停止httpd[确定]

启动httpdhttpd: Could not reliably determine the servers fullyqualified domain name, using localhost.localdomain for ServerName

[确定]

 rpm -q php


centos添加yum官方repo源,安装,升级php5.2.x

CentOS为yum添加官方源由于centos5.4安装好后通过yum来安装php的版本是5.1.6,现在很多站点都是在5.2.x上开发的,所以我们要添加其他的yum repo 来安装Php5.2.x...

Linux系统CentOS使用yum方式安装指定版本的PHP 添加yum源 从PHP5.3升级到5.4/5.5/5.6

默认的版本太低了,手动安装有一些麻烦,想采用Yum安装的可以使用下面的方案: 首先删除旧版本的PHP, 通过yum list installed | grep php可以查看所有已安装的php软件...
  • yfgcq
  • yfgcq
  • 2015年12月02日 19:12
  • 7688

centos添加yum官方repo源,安装,升级php5.2.x

[root@QA-Server ~]# rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka [root@QA-Serve...

Delphi7高级应用开发随书源码

  • 2003年04月30日 00:00
  • 676KB
  • 下载

linux下php快速升级 5.2.6(1)用yum(2)重新编译安装

2011-10-31 12:44 由于linux默认yum源安装的是php 5.1的包, yum安装php以后查看 rpm -qa php php-5.1.6-23...

APMServ5.2.6 升级PHP版本 到高版本 5.3,5.4

首先下载:http://windows.php.net/downloads/releases/php-5.3.28-Win32-VC9-x86.zip  Thursday, December...

Nginx 0.7.x + PHP 5.2.6(FastCGI)+ MySQL 5.1 在128M小内存VPS服务器上的配置优化

[文章作者:张宴 本文版本:v1.0 最后修改:2008.10.28 转载请注明原文链接:http://blog.s135.com/post/375/]   VPS(全称Virtual Priv...

Linux(CentOS5)下mysql+PHP+nginx的搭建

  • 2012年05月24日 10:02
  • 2.63MB
  • 下载

Linux配置Nginx,MySql,php-fpm开机启动的方法 (centos)

NGINX SHELL脚本   放到/etc/init.d/下取名nginx #!/bin/sh # # nginx - this script starts and stops the ngi...

YUM安装及升级CentOS系统中PHP和MySQL

安装APACHE yum -y install httpd 安装PHP yum -y install php 安装ZEND wget http://downloads.zend.com/op...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Centos(linux) 简单方法升级php到php5.2.6 mysql5.1.58
举报原因:
原因补充:

(最多只允许输入30个字)