centos yum升級php

來源:互聯網
上載者:User

標籤:yum源   tail   安裝   ora   tar   art   http   apach   mini   

centos yum升級php5.3.3到最5.6.3

不要輕易升級,否則後果很嚴重!

注意事項:

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*  

最後再進行一次升級動作

yum -y update PHP*

 

 

 

 

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

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

centos yum升級php

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.