How to completely remove PHP from your system?

How to completely remove PHP from your system?

Hint: If it feels safer to you, you could just as easily run them separately, and copy+paste the list of packages to remove like so: sudo apt-get purge libapache2-mod-php5 php5 php5-cli php5-common php5-json You’ll probably want to purge all the php* packages from your system.

How to completely remove PHP from package management?

This should completely remove any package with a name that starts with php and anything related to it. DON’T PRESS y UNTIL YOU ENSURE that in the removing packages list there are no other packages (besides related to php packages), like:

How to remove all configuration files from PHP?

sudo rm -rfv /etc/php – remove all configuration files of all php versions ( php5, php7 etc.); Thanks for contributing an answer to Ask Ubuntu! Please be sure to answer the question.

How to completely purge Apache, MySql, PHP, and phpMyAdmin on Ubuntu?

Add details and clarify the problem by editing this post . Closed 7 years ago. I really need to completely purge my web server on Ubuntu 12.04. I have tried sudo apt-get purge apache2 php5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin (which hopefully removes all of them). How do I completely purge all of them?

How to uninstall PHP on CentOS 7 stack?

First remove everything regarding old php version (will take some time…) dont forget to do restart and check sudo apachectl restart systemctl status httpd If you’re running fpm with NGinX then use following uninstall (this will keep the config’s just o remove packages / dependencies)

Why is MySQL missing from my PHP installation?

I get a message on a WordPress installation ” Your PHP installation appears to be missing the MySQL extension which is required by WordPress. ” I tried to check if php-mysql is still installed: Is there any easy resolution to this mess, or should I just fresh install the whole development machine.