歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> CentOS 下PHP5.3升級到PHP5.4步驟說明

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

日期:2017/3/6 9:13:10   编辑:學習Linux

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


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


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

不升級的後果:

浏覽器打開zabbix的時候,毛都麼有!!!!!!

1、設置yum源

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

  2. rpm-ivhepel-release-6-8.noarch.rpm

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

  4. rpm-ivhremi-release-6.rpm

2、yum claean all

3、yum update php*

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

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

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

3、報錯: Error:Cannotretrievemetalinkforrepository:epel.Pleaseverifyitspathandtryagain

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

http://xxxxxx/Linuxjc/1156059.html TechArticle

Copyright © Linux教程網 All Rights Reserved