First, uninstall and delete MySQL
1 sudo apt-get autoremove--purge mysql-server-5.02 sudo apt-get remove mysql-server3 sudo apt-get autoremove mysql- Server4 sudo apt-get remove Mysql-common (very important) Some of the above is redundant, it is recommended to do it sequentially clean up residual data: dpkg-l |grep ^rc|awk ' {print $} ' |sudo xargs dpkg-psudo find/etc-name ' *mysql* ' |xargs rm-rf finally with Dpkg-l | grep MySQL Check, if no return is clean uninstall Second, uninstall remove Apache sudo apt-get--purge remove Apache-commonsudo apt-get--purge Remove apache Find the profile that was not removed, and remove sudo find/etc-name "*apache*" |xargs rm-rf sudo RM-RF/VAR/WWWSU Do rm-rf/etc/libapache2-mod-jksudo Rm-rf/etc/init.d/apache2sudo rm-rf/etc/apache2 Delete Association, dpkg-l |grep APAC He2|awk ' {print $} ' |xargs dpkg-p delete svnsudo apt-get remove Subversionsudo apt-get Remove libapache2-svn finally with DP Kg-l | grep Apache and Dpkg-l | grep apache2 Check, if no return is clean uninstall third, uninstall remove Php sudo apt-get–purge remove libapache2-mod-php5 php5 php5-gd Php5-mysqlsudo Apt-get AutoreMove php5 Delete Association, sudo find/etc-name "*php*" |xargs rm-rf Clear residue information dpkg-l |grep ^rc|awk ' {print $} ' | sudo xargs dpkg-p last with Dpkg-l | grep php and Dpkg-l | grep php5 Check, clean unload if no return
Ext: 49508143
Ubuntu completely clean uninstall MySQL, Apache2, PHP method (each version of the general