Ubuntu16.04 php5安装失败解决方案

Ubuntu16.04 php5安装失败解决方案

笔者在Ubuntu16.04桌面系统安装php5时,提示Package php5 have no installation candidate,在http://stackoverflow.com/questions/36788873/package-php5-have-no-installation-candidate-ubuntu-16-04上面找到了答案。

Ubuntu 16.04 comes with PHP7 as the standard, so there are no PHP5 packages

However if you like you can add a PPA to get those packages anyways:
Add the PPA

sudo add-apt-repository ppa:ondrej/php

Install your PHP Version

sudo apt-get update
sudo apt-get install php5.6

You can install php5.6 modules too ..

你可能感兴趣的:(电脑技术)