sudoapt-getinstallmysql-serversudoapt-getinstallphp7.0sudoapt-getinstallphp7.0-clisudoapt-getinstalllibapache2-mod-php7.0sudoapt-getinstallphp7.0-mysqlsudoapt-getinstallphp7.0-xml//install 7.0sudoadd-apt-repositoryppa:ondrej/phpsudoapt-getupdatesudoapt-getinstallphp7.0php5.6php5.6-mysqlphp-gettextphp5.6-mbstringphp-mbstringphp7.0-mbstringphp-xdebuglibapache2-mod-php5.6libapache2-mod-php7.0//which PHP CLI version should be usedsudoupdate-alternatives--setphp/usr/bin/php7.0//disable one version and enable antohersudoa2dismodphp7.2sudoa2enmodphp7.0sudoserviceapache2restart//remove completely PHP from your systemsudoapt-getpurge`dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`