Install PHP 7 on Debian via Repository

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

Install public key:

apt-key adv --recv-keys --keyserver E9C74FEEA2098A6E

Add Debian repositories:

add-apt-repository "deb $(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