Forked from UbuntuEvangelist/Completely Uninstall LAMP Stack Ubuntu 24.04 LTS
Created
June 27, 2023 09:28
-
-
Save Catatonic32/312ae5c88412d3a1b201499376f7ea82 to your computer and use it in GitHub Desktop.
Completely Uninstall LAMP Ubuntu 20.04 LTS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contact Me For Your Projects :) | |
Telegram: https://t.me/LinuxGun | |
WhatsApp: https://wa.link/5ow7oz | |
#!/bin/bash | |
# This will remove Apache | |
sudo service apache2 stop | |
sudo apt-get purge apache2 apache2-utils apache2.2-bin | |
sudo apt remove apache2.* | |
sudo apt-get autoremove | |
whereis apache2 | |
sudo rm -rf /etc/apache2 | |
# This will remove PHP version. Type your php version before run below command. I am using php 8.0.x change yours... | |
php --version | |
sudo apt-get purge `dpkg -l | grep php8.0| awk '{print $2}' |tr "\n" " "` | |
sudo apt-get purge php8.* | |
sudo apt-get autoremove --purge | |
whereis php | |
sudo rm -rf /etc/php | |
sudo apt update -y | |
sudo apt upgrade -y | |
php --version | |
# This will remove MYSql | |
sudo service mysql stop | |
sudo apt-get remove --purge *mysql\* | |
sudo apt-get remove --purge mysql-server mysql-client mysql-common -y | |
sudo rm -rf /etc/mysql | |
sudo apt-get autoremove | |
sudo apt-get autoclean | |
sudo reboot | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment