ubuntu16.04如何安装php5

系统源自带是7.0的,由于某些原因,不能使用php7.0,如果要安装安装5.5+或者有5.5+的源可以执行这些命令

sudo apt-get install -y language-pack-en-base

sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php

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

 

sudo apt-get install python-software-properties
sudo apt-get install software-properties-common

sudo apt-get update 

sudo apt-get install php5.5 

下面可以愉快的安装了

posted @ 2016-06-03 11:20  吴魁  阅读(7923)  评论(0编辑  收藏  举报