Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

PHP Error on Debian 8

OoGuru edited this page Dec 7, 2017 · 1 revision

If you get the following error on a Debian 8 installation:

*1 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: www.example.com, request:

You can fix it by installation PHP 7:

Add the dotdeb key:

curl https://www.dotdeb.org/dotdeb.gpg | sudo apt-key add -

Add the repository:

sudo add-apt-repository -y -s 'deb http://packages.dotdeb.org jessie all'

Update

sudo apt update

Install php7.0

sudo apt install -y php7.0 php7.0-fpm php7.0-zip php7.0-sqlite3 php7.0-curl php7.0-xml

Restart nginx

sudo service nginx restart

The error should now be fixed.