Proceed as pi.
Add new repository sources
sudo nano /etc/apt/sources.list
Add the following two lines:
deb http://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-free #deb-src http://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-free
Next we need to add a couple of certificates in order to allow us to use the sources with apt-get. Run the following two commands:
sudo gpg --keyserver pgpkeys.mit.edu --recv-key CCD91D6111A06851 sudo gpg --armor --export CCD91D6111A06851 | sudo apt-key add -
Update the package list:
sudo apt-get install dirmngr sudo apt-get update
PHP7.0 install
sudo apt-get install php7.0 php7.0-curl php7.0-gd php7.0-imap php7.0-json php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-xmlrpc php7.0-fpm
Connecting with nginx
sudo nano /etc/php/7.0/fpm/pool.d/www.conf
find the line
listen = /run/php/php7.0-fpm.sock
It should look like this:
listen = 127.0.0.1:9000
Reboot raspberry pi.
sudo reboot
Excute the function phpinfo()
cd /home/pi/wp nano pi.php
The contents of the file shoult look like this.
<?php phpinfo(); ?>
Connect to the page to the browser.
http://[rasberry pi IP]/pi.php