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?
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
.