aptitude install apt-transport-https lsb-release ca-certificates &&
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg &&
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" >> /etc/apt/sources.list &&
aptitude update
aptitude install php7.1-cli
aptitude install php7.1-fpm
aptitude install php7.1-mysql
aptitude install php7.1-curl
aptitude install php7.1-gd
aptitude install php7.1-imagick
aptitude install php7.1-intl
aptitude install php7.1-mbstring
aptitude install php-soap
aptitude install php7.1-soap
aptitude install php7.1-xmlrpc
aptitude install php7.1-xsl
aptitude install mcrypt
aptitude install php7.1-mcrypt
aptitude install php7.1-dev
aptitude install zip
aptitude install php7.1-zip
aptitude install php7.1-bcmath
aptitude install php-pear
pecl install timezonedb