apt-get update; apt install apt-transport-https ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg
https://packages.sury.org/php/apt.gpg
sh -c 'echo "deb
https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list'
apt-get update;apt-get install php7.1-gd php7.1-intl php7.1-apcu php7.1-mbstring php7.1-bcmath php7.1-cli php7.1-curl php7.1-fpm php7.1-gd php7.1-intl php7.1-mcrypt php7.1-mysql php7.1-soap php7.1-xml php7.1-zip php7.1-memcache php7.1-memcached php7.1-zip
update-rc.d php7.1-fpm defaults