I installed a LAMP stack with the following commands:
$sudo apt-get install apache2 php5 libapache2-mod-php5
$sudo service apache2 restart
$sudo apt-get install mysql-server mysql-client php5-mysql
Anyway, I found that Apache isn't the most lightweight server out there, and I found Nginx. So, naturally, I tried uninstalling Apache:
$sudo apt-get purge apache2
I even tried stopping the service before and rebooting afterwards. It goes through the remove process fine, but the service stays there. If I run that command again, it will say that Apache is uninstalled. I've tried uninstalling all of these packages: apache2 php5 libapache2-mod-php5
, but, whenever I reboot and go to my Pi's IP, I always get the Apache welcome file.
I then thought that it would be an issue of another web server was handling the Apache file. However, I can still stop the page from loading with sudo service apache2 stop
. Why is this happening/how can I fix this?
remove
command instead ofpurge
man apt-get
page: purge is identical to remove except that packages are removed and purged (any configuration files are deleted too). Why would removing the configuration files not uninstall a package? Am I overlooking something?