Roby Firnando Yusuf Asked: 2019-05-14 04:42:50 +0800 CST2019-05-14 04:42:50 +0800 CST 2019-05-14 04:42:50 +0800 CST Uninstalled PHP5.6 not working 772 i've been uninstall php5.6 on my PC then I upgrade to PHP7.2 but when i checked php cli php -v, it's show me like this, it's still show me PHP 5.6 Anyone can help me out ? php php7 1 Answers Voted ThunderBird 2019-05-14T05:07:23+08:002019-05-14T05:07:23+08:00 This is what I think you should do: 1- Remove your php packages and install php7.2. You can proceed as follows: sudo apt-get purge php5.* sudo apt-get autoremove sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt install php7.2 php7.2-common php7.2-cli php7.2-fpm 2- Optionally, you can also do: (Just after sudo apt-get purge php5.*), to be sure you install php7 freshly. sudo apt-get purge php7.* 3- You can then check the version of your php to be sure. It is done just as you did: php -v 4- Remember to leave feedback or accept the answer if it has been of help!
This is what I think you should do:
1- Remove your php packages and install php7.2. You can proceed as follows:
2- Optionally, you can also do: (Just after
sudo apt-get purge php5.*
), to be sure you install php7 freshly.3- You can then check the version of your php to be sure. It is done just as you did:
4- Remember to leave feedback or accept the answer if it has been of help!