Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save UbuntuEvangelist/9d115b4ca95c330ef6d2dd42f6c133c9 to your computer and use it in GitHub Desktop.
Save UbuntuEvangelist/9d115b4ca95c330ef6d2dd42f6c133c9 to your computer and use it in GitHub Desktop.
Completely Uninstall LAMP Ubuntu
HIRE Me For Your Project Support :)
Telegram: https://t.me/LinuxGun
#!/bin/bash
# Completely Remove Apache Ubuntu
service apache2 stop
apt purge apache2 apache2-utils apache2.2-bin
apt remove apache2.*
apt autoremove
whereis apache2
rm -rf /etc/apache2
# This will Completely remove PHP version Ubuntu. Type your php version before run below command. I am using php 8.0.x change yours...
php --version
apt purge `dpkg -l | grep php8.0| awk '{print $2}' |tr "\n" " "`
apt purge php8.*
apt autoremove --purge
whereis php
rm -rf /etc/php
apt update -y
apt upgrade -y
php --version
# This will completely remove MYSql
service mysql stop
apt remove --purge *mysql\*
apt remove --purge mysql-server mysql-client mysql-common -y
rm -rf /etc/mysql
apt autoremove
apt autoclean
reboot
@geramireza
Copy link

thanks a lot

@QuantumDevQBL
Copy link

Thanks a lot :-)

@roccanon
Copy link

perfect.
thank you.

@UbuntuEvangelist
Copy link
Author

great tool; trying to install mediawiki and started from a scatch debian install several times, This is helpfull Hans

welcome

@UbuntuEvangelist
Copy link
Author

@Philo62 thanks for correct me

@BlackChristianGeek
Copy link

Just what I needed and if I had slowed down just a bit before installing the LAMP stack I wouldn't need it :-) Thanks,

@TBoubacar
Copy link

You're the best. Thanx for all

@UbuntuEvangelist
Copy link
Author

Thanks @TBoubacar

@EquinetPaul
Copy link

i needed a clean thx

@akelvin49
Copy link

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

@imamsuro
Copy link

You save my time bro. Thank you.

@mojo35
Copy link

mojo35 commented Dec 12, 2022

Thanks!

@julianohoffmann
Copy link

perfect tx

@Aryo07
Copy link

Aryo07 commented Aug 22, 2023

Thanks sir!

@turmat202
Copy link

Thanks sir

@tsiryaxel
Copy link

It's very useful, thank you!

@VuitBlack
Copy link

Thx so much for this information... I was not able to uninstall an old version of php. And Thanks to this manual I coud uninstall it.

@UbuntuEvangelist
Copy link
Author

Thx so much for this information... I was not able to uninstall an old version of php. And Thanks to this manual I coud uninstall it.

Thanks

@CarlosJSanchezdev
Copy link

Desde cali colombia has hecho que una distro muy cuidada no se pierda gracias por tu conocimiento

@MoJeeza
Copy link

MoJeeza commented Sep 24, 2024

Thanks...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment