分类 运行环境 下的文章

树莓派安装php5.6

sudo vim /etc/apt/sources.list
将内容改成下面这样

#deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ jessie main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ jessie main non-free contrib

然后 sudo apt-get update

然后 sudo apt-get install php5 php5-fpm php5-cli

然后 php -v 看看是不是装好了5.6

别忘了安装pdo sudo apt-get install php5-mysqlnd php5-sqlite php-db

- 阅读剩余部分 -