Adding Dotdeb to Debian 8
Dotdeb is an extra repository for Debian that provides up-to-date packages for webservers. I provide a fast UK mirror of the repo. This article covers getting up and running in Debian 8.
After adding the Dotdeb repository you'll be able to install the latest versions of software such as: PHP 7.0, nginx 1.10 with HTTP/2, Redis 3.2, and more. PHP 7.0 is co-installable with PHP 5.6 from the official Debian repositories.
Note: Dotdeb will not be providing PHP 7.1 packages.
Step 1: Add the Dotdeb GPG key
All of the Dotdeb packages are signed with a GPG key. So long as you add the official key to apt you'll be able to trust packages from any mirror. To add the key:
# wget https://www.dotdeb.org/dotdeb.gpg # apt-key add dotdeb.gpg
Step 2: Add the mirror to your sources.list file
# echo 'deb http://mirror.mscott.me.uk/dotdeb/ jessie all' >> /etc/apt/sources.list # echo 'deb-src http://mirror.mscott.me.uk/dotdeb/ jessie all' >> /etc/apt/sources.list
And optionally add the following if you'd like nginx with HTTP/2 and ALPN:
# echo 'deb http://mirror.mscott.me.uk/dotdeb/ jessie-nginx-http2 all' >> /etc/apt/sources.list # echo 'deb-src http://mirror.mscott.me.uk/dotdeb/ jessie-nginx-http2 all' >> /etc/apt/sources.list
Step 3: Update apt and install your packages
# apt-get update # apt-get install nginx php7.0 php7.0-fpm