Ubuntu completely clean uninstall MySQL, Apache2, PHP method (each version of the general

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.