Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've tried to remove Apache2 by :

sudo apt-get remove apache2

Next :

sudo apt-get autoremove

After that, on http://localhost still appears following text :

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

Why after removing Apache2 above text still appears?

share|improve this question
have you cleaned the browser cache? – vfbsilva Aug 9 '13 at 11:23
Also, just to make sure there aren't any apache processes left behind, be sure to restart. FYI, a quick way around the cache is either F5 or Ctrl+F5. – Chuck R Aug 9 '13 at 11:31
What's the output of netstat -tlnp | grep 80? – Alaa Ali Aug 9 '13 at 11:46
@vfbsilva Your right. I cleared browser cache and fixed.Thank you – Hamed Kamrava Aug 9 '13 at 14:24

It's probably still running; try ps aux | grep -E 'httpd|apache'; if there is a process then it's because you did not stop it.

If it's not running see what is bound to that port by doing lsof -Pni :80.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.