您的位置:首页 > 编程语言 > PHP开发

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

2016-05-12 00:05 585 查看

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 ..
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: