Upgrade php 5.5.* to php 5.6.* using apt-get

前端 未结 4 499
青春惊慌失措
青春惊慌失措 2021-01-15 17:22

I installed a new local server, when I installed php5 package with apt-get install php5 it got the version 5.6.

My production server is still with php 5

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-15 18:27

    To upgrade to a newer version of PHP 5.6 on Ubuntu 14.04, you can use Ondřej Surý's PPA. He is one of the Debian maintainers of the php5 package. To add the PPA and upgrade your packages, run:

    sudo apt-get install software-properties-common
    sudo add-apt-repository ppa:ondrej/php5-5.6
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install php5
    

提交回复
热议问题