Ubuntu 16.04系统中安装PHP5的方法如下:
1.安装好Ubuntu Server 16.04后执行以下命令:
sudo add-apt-repository 'deb http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse'
(或者直接vim /etc/apt/sources.list内添加网易源:deb http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse)
2.更新源sudo apt-get update
3.安装PHP5.6.11,执行以下命令sudo apt-get install php5-fpm