CentOS 下PHP5.3升級到PHP5.4步驟

來源:互聯網
上載者:User

標籤:升級   php5.3   php5.4   php   centos   

在配置zabbix3.0.3版本的時候,由於yum安裝的環境php都是5.3版本,而zabbix最新版要求版本要大於5.4.這個時候我們就需要給現有的php升級

不升級的後果:

    瀏覽器開啟zabbix的時候,毛都麼有!!!!!!

1、設定yum源

    

  1. wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm   

  2. rpm -ivh epel-release-6-8.noarch.rpm   

  3. wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm   

  4. rpm -ivh remi-release-6.rpm

2、yum claean all

3、yum update php*

出現的故障現象及解決方案:

    1、如果yum源裡面的baseurl前面有#號,我們需要vim編輯去掉#

    2、需要確認enable是否為1,不為1要修改為1

    3、報錯:  Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

                執行1步,同時給mirrorlist前面加#

本文出自 “圈中一鳥” 部落格,請務必保留此出處http://sgk2011.blog.51cto.com/1551358/1827416

CentOS 下PHP5.3升級到PHP5.4步驟

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.