How can I remove apache from my server?I'm using Ubuntu 9 64bit, the apache2 came preinstalled.
A command like this may get rid of everything.
dpkg --get-selections | grep apache | xargs apt-get --yes apt-get purge
You probably should run
dpkg --get-selections | grep apache this command first to see the list of packages that will be uninstalled so you can be sure the grep is selecting the right things.