I need to completely remove apache2 but no matter what I do I still get the default ubuntu page and when I run a nodejs app it will say port 80 is in use.
I tried the usual suggested in other apache2 removal questions:
sudo service apache2 stop
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
sudo apt-get autoremove
rm -rf /usr/sbin/apache2
rm -rf /etc/apache2
$ sudo lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
chrome 2426 physiii 184u IPv4 31202 0t0 TCP desktop:54128->151.101.193.69:http (ESTABLISHED)
chrome 2426 physiii 248u IPv4 27504 0t0 TCP desktop:54038->151.101.193.69:http (ESTABLISHED)
chrome 2426 physiii 258u IPv4 27510 0t0 TCP desktop:33542->174.76.226.31:http (ESTABLISHED)
I still get "Apache2 Ubuntu Default Page" if I go to 127.0.0.1
What is going on?
sudo lsof -i :80
, please. – muru Feb 27 '17 at 05:53sudo
insudo lsof -i :80
. – muru Feb 27 '17 at 14:40sudo lsof -i :80
was the clue for me. It turned out it was nginx now serving the exact same folder/var/www/html/
. – angularsen Aug 05 '17 at 20:15