Ubuntu Full Uninstall Apache2

Source: Internet
Author: User

Installation time using one-click installation, very simple

Apt-get Install Apache2

These two days to configure a lighttpd, but has not been successful, today in the company with virtual machine in the Ubuntu configuration lighttpd success, suspicion is and apache2 some things conflict.

You are ready to uninstall Apache2 and then reconfigure LIGHTTPD to try again. After the result "uninstall", reboot, access to http://localhost incredibly still can access. Did not unload it?!

Enter Apache2 in terminal, prompt is not installed, run Apt-get remove apache2, still prompt not installed. Good pit Daddy!

Suddenly think of some "apache2" did not unload???

So, run

Apt-get Remove apache*

No doubt, very long information, enter Y, carriage return. When you are finished, visit localhost again,

Bad! Google Chrome cannot connect to localhost
Suggestions:
Enter Localhost.­net
Enter Localho.­st
Enter localhostr.­com
Try Reload: localhost
Search on Google:

Haha, it looks like a success.

It should be that apache2 relies on something that is not completely removed and is still "contributing" to the cause.

----------------------------------------------Split Line----------------------------------------------

Recently always in the change project, in the environment, delete the original unused, and sometimes install the error, the following on the apache2 of the full Uninstall command affixed out, for everyone to reference!

1. Delete Apache

Code:

$ sudo apt-get--purge remove Apache-common

$ sudo apt-get--purge remove Apache

2. Find a profile that is not deleted and delete it.

Code:

$ sudo find/etc-name "*apache*" |xargs RM-RF

$ sudo rm-rf/var/www

$sudo RM-RF/ETC/LIBAPACHE2-MOD-JK

3. Remove the association so that it can be re-installed with the Apt-get install Apache2

#dpkg-L |grep Apache2|awk ' {print $} ' |xargs Dpkg-p

I'm OK, everybody, you can try!!!

For more information about Ubuntu see the Ubuntu feature page http://www.linuxidc.com/topicnews.aspx?tid=2

Ubuntu Full Uninstall Apache2

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.