1:
修改apt軟件源
打開文件 /etc/apt/sources.list
添加以下行
deb http://packages.dotdeb.org jessie allphp
2:
Fetch the repository key and install it.mysql
wget https://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpgnginx
3:
sudo apt-get updatesql
4:
sudo apt-get install php7.0-fpm
sudo apt-get install php7.0-mysqlphp7
apt-get install php-curl(升級後可能會缺乏這個擴展,須要從新安裝一下)dom
若是使用symfony可能還要升級curl
sudo apt-get install php7.0-domsocket
5:
更新nginx socket path
vitual server中的 fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;url
6:從新啓動nginx與nginx fpm
service nginx restart
/etc/init.d/php7.0-fpm restartspa