Successfully Remove php from Linux System using following Commands
sudo apt-get remove –purge php*
sudo apt-get purge php*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-php
sudo apt-get dist-upgrade
2 responses to “How to Remove php from Any Linux System”
After Installing owncloud if you get following Error:- This version of ownCloud is not compatible with PHP 7.3Then use above Command.
After that install php version which is compatiable your owncloud version.The command to Install php sudo apt-get install php7.2Here,the php version is 7.2. You can change it as per your requirements.