Upgrading PHP on CentOS 6.5 (Final)

前端 未结 7 1313
死守一世寂寞
死守一世寂寞 2020-11-30 18:04

I\'m trying to update my PHP (currently v:5.3.3 to the latest stable PHP build) but it\'s not playing ball and it\'s saying there is nothing to update.

Any help woul

7条回答
  •  醉酒成梦
    2020-11-30 18:23

    This is the easiest way that worked for me: To install PHP 5.6 on CentOS 6 or 7:

    CentOS 6. Enter the following commands in the order shown:

    yum -y update
    yum -y install epel-release
    wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
    wget https://centos6.iuscommunity.org/ius-release.rpm
    rpm -Uvh ius-release*.rpm
    yum -y update
    yum -y install php56u php56u-opcache php56u-xml php56u-mcrypt php56u-gd php56u-devel php56u-mysql php56u-intl php56u-mbstring php56u-bcmath
    

    CentOS 7. Enter the following commands in the order shown:

    yum -y update
    yum -y install epel-release
    wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    wget https://centos7.iuscommunity.org/ius-release.rpm
    rpm -Uvh ius-release*.rpm
    yum -y update
    yum -y install php56u php56u-opcache php56u-xml php56u-mcrypt php56u-gd php56u-devel php56u-mysql php56u-intl php56u-mbstring php56u-bcmath
    

    Sorry - I'm unable to post the source URL - due to reputation

提交回复
热议问题