Install PHP7.0 on raspbian jessie – RCK

Proceed as pi.

Add new repository sources

sudo nano /etc/apt/sources.list

Add the following two lines:

deb jessie-backports main contrib non-free
#deb-src 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 --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 =

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.


Connect to the page to the browser.

http://[rasberry pi IP]/pi.php

Leave a Reply

Your email address will not be published. Required fields are marked *