I have a server that has an application that runs with PHP 5.6. But I upgraded the server from Ubuntu 14.04 to 18.04 and in the process I also upgraded PHP to 7.2. Now I\'m tryi
This will remove PHP
sudo apt-get purge `dpkg -l | grep php7.2| awk '{print $2}' |tr "\n" " "` sudo apt-get purge php7.* sudo apt-get autoremove --purge whereis php sudo rm -rf /etc/php