Upgrade php 5.5.* to php 5.6.* using apt-get
问题 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.5 and I would like to upgrade it to php 5.6 like in my dev environment. Can I do it easily using apt-get ? tell to apt-get to switch to the branch 5.6 ? Thx 回答1: Enter the following commands in the order shown: apt-get -y update add-apt-repository ppa:ondrej/php apt-get -y update apt-get -y install php5.6 php5.6-mcrypt php5.6-mbstring php5.6