Install php7.0-fpm # remove php5 modules apt-get autoremove --purge php5-* # add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj) add-apt-repository ppa:ondrej/php # Update index apt-get update # Install php7.0-fpm with needed extensions