how to uninstall php linux
- User
how to uninstall php linux
- Assistant
Uninstalling PHP on a Linux system depends on how it was installed (e.g., using a package manager, from source, etc.). Here are the common methods for various package managers:
For Debian/Ubuntu-based Distributions
If you installed PHP using
apt, you can remove it with the following commands:-
To uninstall PHP and its dependencies:
bashsudo apt remove php*
-