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 trying to uninstall it but I'm finding difficult.
I have run the command:
sudo apt-get remove php
and
sudo apt-get remove --purge php
Its says that PHP it's not installed, but running
php --version
I'm still seeing the version 7 of PHP.
PHP 7.2.19-0ubuntu0.18.04.2 (cli) (built: Aug 12 2019 19:34:28) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.19-0ubuntu0.18.04.2, Copyright (c) 1999-2018, by Zend Technologies
sudo apt-get purge php7.*
– catconwhich php
might give some clues). – Emil Vatai