Ubuntu16.04安装php5等环境
来自个人维基
安装 php5:
sudo add-apt-repository ppa:ondrej/php sudo apt-get update apt-cache search php5 sudo apt-get install php5.5-common sudo apt-get install libapache2-mod-php5.5
扩展curl、mysql_pdo、GD安装:
apt-get install php5.6-curl apt-get install php5.6-GD apt-get install php5.6-dev apt-get install php5.6-mysql apt-get install php5.6-bcmath
重启apache生效。