Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
have you cleaned the browser cache? –  vfbsilva Aug 9 '13 at 11:23
1  
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. –  Githlar 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

1 Answer 1

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

 
discard

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.