Ask Ubuntu Asked on December 31, 2021
I have removed apache from my ubuntu 18.04 including all its config files using apt purge apache2
. Browser still show default page on doing localhost:80. Please explain ?
Even after uninstalling apache2 it kept showing the default page. I tried rebooting, but nothing worked, until I cleared the cache and cookies of the Browser
So, try and clear your browser's cache & cookies.
Answered by Crazzi_Boii on December 31, 2021
If you run this command and it shows a running Apache2 server, you still have a web server installed:
sudo service apache2 status
It's also possible you have a different web server installed and running, such as lighttpd
or nginx
. Likewise you can check if they are running:
sudo service lighttpd status
sudo service nginx status
You can also try removing all of the packages associated with them this way:
sudo service apache2 stop
sudo service lighttpd stop
sudo service nginx stop
sudo apt remove apache2 apache2-bin
sudo apt remove lighttpd
sudo apt remove nginx
If for some reason you still have a HTTP server running consider looking at:
which apache2
which lighttpd
which nginx
To see if any files are located in /usr/local
or /opt
- in which case you have to delete them manually.
You can also find which command specifically is using port 80 using this:
sudo netstat -plnt | grep ':80'
Answered by Kristopher Ives on December 31, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP