-
-
Save UbuntuEvangelist/9d115b4ca95c330ef6d2dd42f6c133c9 to your computer and use it in GitHub Desktop.
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 | |
sudo rm -rf /etc/mysql
Exactly !! Don't forget " sudo " before !!
Thank you
Thanks!!
great tool; trying to install mediawiki and started from a scatch debian install several times,
This is helpfull
Hans
Thanks
Mandou muito , valeu
Merci
Thank you so much!
Thank you very much!
thanks a lot
Thanks a lot :-)
perfect.
thank you.
great tool; trying to install mediawiki and started from a scatch debian install several times, This is helpfull Hans
welcome
@Philo62 thanks for correct me
Just what I needed and if I had slowed down just a bit before installing the LAMP stack I wouldn't need it :-) Thanks,
You're the best. Thanx for all
Thanks @TBoubacar
i needed a clean thx
Você me salvou. E ainda aprendi a como criar arquivos de bash com seu código. Eu ia procurar por isso nesse momento. Obrigado!
Thanks very much
You save my time bro. Thank you.
Thanks!
perfect tx
Thanks sir!
Thanks sir
This is great. Thank you.