日期:2011-10-18 10:47:00  来源:本站整理

Centos5.5 简单办法进级php到php5.2.6[服务器安全]

赞助商链接



  本文“Centos5.5 简单办法进级php到php5.2.6[服务器安全]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:

装完Centos5.5 看了看php版本才5.1.6,于是下意识的

# yum update php
Loading “fastestmirror” plugin
Existing lock /var/run/yum.pid: another copy is running as pid 12787.
Another app is currently holding the yum lock; waiting for it to exit…
Another app is currently holding the yum lock; waiting for it to exit…
Another app is currently holding the yum lock; waiting for it to exit…
Another app is currently holding the yum lock; waiting for it to exit…
Loading mirror speeds from cached hostfile
* base: centos.candishosting.com.cn
* updates: centos.candishosting.com.cn
* addons: centos.candishosting.com.cn
* extras: centos.candishosting.com.cn
Setting up Update Process
Could not find update match for php
No Packages marked for Update
看来Centos系统软件仓中的php没有更新,晕
本人懒人一个,不想重新手动编译php,既然官方的yum源里面没有,那总有一个源有吧,
 
找找总算找到一个,以下增添一个额外的源:
# rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
# gedit /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 for package: php-gd
–> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-ldap
–> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-pdo
–> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-mysql
–> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-mbstring
–> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: 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 utterramblings 2.6 M
php-common i386 5.2.6-jason.1 utterramblings 481 k
Updating for dependencies:
php-gd i386 5.2.6-jason.1 utterramblings 320 k
php-ldap i386 5.2.6-jason.1 utterramblings 56 k
php-mbstring i386 5.2.6-jason.1 utterramblings 1.3 M
php-mysql i386 5.2.6-jason.1 utterramblings 258 k
php-pdo i386 5.2.6-jason.1 utterramblings 159 k
php-xml i386 5.2.6-jason.1 utterramblings 316 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.1 php-cli.i386 0:5.2.6-jason.1 php-common.i386 0:5.2.6-jason.1
Dependency Updated: php-gd.i386 0:5.2.6-jason.1 php-ldap.i386 0:5.2.6-jason.1 php-mbstring.i386 0:5.2.6-jason.1 php-mysql.i386 0:5.2.6-jason.1 php-pdo.i386 0:5.2.6-jason.1 php-xml.i386 0:5.2.6-jason.1
Complete!
# service httpd restart
终止 httpd: [肯定]
启动 httpd:httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain for ServerName
[肯定]
# rpm -q php
php-5.2.6-jason.1
  以上是“Centos5.5 简单办法进级php到php5.2.6[服务器安全]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
  • Windows 2008R2 HyperV下安装CentOS6,网卡无痛设置
  • CentOS 6.x 利用安装光盘作为yum源
  • CentOS 下 Nginx + Keepalived 配置高可用Web站点
  • CentOS 5.8布置web缓存服务器(squid+memcached)
  • centos6.2改正yum的源为安装光盘
  • CentOS6 yum搭建Linux+Nginx+PHP+MYSQL(LNMP)
  • CentOS 6.2 安装Nginx并设置为开机服务
  • CentOS 6.2布置DNS
  • CentOS6.2利用yum安装LAMP及phpMyadmin
  • CentOS下配置PHP+phpMyAdmin
  • centos下mysql主从同步快速设置步骤分享
  • 在Windows主机上按时备份远程VPS(CentOS)数据的批处理
  • 本文地址: 与您的QQ/BBS好友分享!
    • 好的评价 如果您觉得此文章好,就请您
        0%(0)
    • 差的评价 如果您觉得此文章差,就请您
        0%(0)

    文章评论评论内容只代表网友观点,与本站立场无关!

       评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
    Copyright © 2020-2022 www.xiamiku.com. All Rights Reserved .