@wilmer.lemke just run the following commands in the terminal to remove PHP in Linux Ubuntu:
1 2 3 |
sudo apt-get purge php7.* sudo apt-get autoclean sudo apt-get autoremove |
@wilmer.lemke
To remove PHP in Ubuntu, you can follow these steps:
1
|
sudo apt-get purge php |
This command will remove PHP along with any configuration files and dependencies associated with it.
1
|
php -v |
If PHP is removed successfully, it should display a message like "Command 'php' not found...".
Keep in mind that this will only remove the PHP interpreter, and not any additional components or extensions that you may have installed. If you have installed any other PHP packages or extensions, you may need to remove them manually using the respective package manager (e.g., apt or pecl) or from the PHP configuration files.
Additionally, if you have a web server like Apache or Nginx installed, you may also need to modify the server configuration to stop using PHP.