use purge to get rid of apache

This commit is contained in:
Joshua Tauberer 2014-04-25 11:41:50 +00:00
parent beae591a0e
commit 9bab925123
1 changed files with 5 additions and 1 deletions

View File

@ -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