Debian安装php5.6

<!--markdown-->添加GPG

wget -O /etc/apt/trusted.gpg.d/php.gpg https://mirror.xtom.com.hk/sury/php/apt.gpg

安装

apt-transport-https
apt-get install apt-transport-https

添加 sury 软件镜像源

echo "deb https://mirror.xtom.com.hk/sury/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list 

更新软件源缓存:

apt-get update

安装php5.6

apt install -y php5.6-fpm php5.6-mysql php5.6-curl php5.6-gd php5.6-mbstring php5.6-mcrypt php5.6-xml php5.6-xmlrpc php5.6-zip php5.6-opcache
提交 下一篇:记一次mysql的坑