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

来源:互联网 发布:python协程 编辑:程序博客网 时间:2024/05/04 08:33

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 ..

0 1
原创粉丝点击