Install PHP 7 on Debian via Dotdeb.org Repository

Installing PHP 7 on Debian using Dotdeb.org repositories is very easy. In short, you just need to install the Dotdeb.org PGP key, the Dotdeb.org Debian repositories and then install PHP7 via apt-get. Here is the tutorial you can follow:

Install Dotdeb.org public key:

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com E9C74FEEA2098A6E

Add Dotdeb.org Debian repositories:

add-apt-repository "deb http://packages.dotdeb.org $(lsb_release -s -c) all"

Update apt-get database:

apt-get update

Install PHP 7 and PHP-FPM:

apt-get install php7.0-common php7.0-fpm

Install PHP7-GD library:

apt-get install php7.0-gd

More Related Posts