ubuntu系统是16.04,有一个特点是apt库没有php5的只有php7的,
所以如果要安装php5的 就需要额外操作了
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php5.6
启用mysqli 和xml扩展
sudo apt-get install php5.6-xml php5.6-mbstring php5.6-mysqli
ubuntu系统是16.04,有一个特点是apt库没有php5的只有php7的,
所以如果要安装php5的 就需要额外操作了
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php5.6
启用mysqli 和xml扩展
sudo apt-get install php5.6-xml php5.6-mbstring php5.6-mysqli