centos yum升級php

centos yum升級php5.3.3到最5.6.3php

不要輕易升級,不然後果很嚴重!html

注意事項:mysql

1 升級後以前的php擴展不會丟失 自動會安裝對應最新php的擴展
2 升級後需重啓下apache 才能看到
3 升級時候會提示 Loaded plugins: fastestmirror Determining fastest mirrors 參考後面修改,從新執行便可 
4 若是失敗通常是yum源的問題 注意是對應的64位 


centos6.5的php預設5.3.3這個版本,其實對centos來講就是替換掉yum的資料庫

分如下步驟進行
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
 
sudo vim /etc/yum.repos.d/remi.repo
 
進去把全部的enabled參數改爲1

yum –enablerepo=remi update php* mysql*  

最後再進行一次升級動做

sql

yum -y update PHP*apache

 

 

 

 

解決yum下 Loaded plugins: fastestmirror Determining fastest mirrors 的問題vim

http://blog.sina.com.cn/s/blog_7e513d7e01015j9b.htmlcentos

相關文章
相關標籤/搜索