From 9bab925123abb2d457d339224ea66d9879183189 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Fri, 25 Apr 2014 11:41:50 +0000 Subject: [PATCH] use purge to get rid of apache --- scripts/web.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/web.sh b/scripts/web.sh index 12281393..c0786795 100755 --- a/scripts/web.sh +++ b/scripts/web.sh @@ -1,7 +1,11 @@ # HTTP: Turn on a web server serving static files ################################################# -apt-get remove -q -y apache2 +# Remove Apache before installing Nginx. Apache may leave +# some unwanted configuration files around (e.g. a ufw +# application config), so purge the packages. +apt-get purge -q -y apache2 apache2.2-common + apt-get install -q -y nginx php5-cgi rm -f /etc/nginx/sites-enabled/default