操作环境
root@IronMan:~# cat /etc/issue Debian GNU/Linux 7 \n \l
操作步骤
指定软件源, 编辑:
vim /etc/apt/sources.list.d/dotdeb.list
写入如下内容:
deb http://packages.dotdeb.org wheezy-php56 all deb-src http://packages.dotdeb.org wheezy-php56 all
将上述软件源加入 apt key:
wget http://www.dotdeb.org/dotdeb.gpg -O- | apt-key add -
更新可用包列表:
aptitude update
升级 PHP 版本:
aptitude install php5-cli php5-fpm