The problem is that the package that used to connect PHP to MySQL is deprecated (php5-mysql). If you install the new package, sudo apt-get install php-mysql this will automatically update Apache and PHP 7.