Remove LAMP from Linux Machine (RHEL)
After gaining root access it takes 4 steps to remove LAMP from your machine. The steps are :
Step 1 (Uninstalling Mysql):
# yum remove mysql mysql-server
Step 2 (Uninstalling php):
# yum remove php php-common php-devel
Step 3 (Uninstall Mysql Libraries):
# yum remove mysql-libs
Step 4 (Uninstalling apache):
# yum remove httpd
and you are done