From abe0ee73b4da2148996bd08c30f0995786d81a5b Mon Sep 17 00:00:00 2001 From: nachoparker Date: Wed, 6 Sep 2017 20:02:36 +0200 Subject: disable not needed apache modules --- lamp.sh | 5 ++++- nextcloudpi.sh | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lamp.sh b/lamp.sh index e5438c84..40a28cda 100644 --- a/lamp.sh +++ b/lamp.sh @@ -104,11 +104,14 @@ EOF a2enconf php7.0-fpm a2enmod rewrite a2enmod headers - a2enmod env a2enmod dir a2enmod mime a2enmod ssl + a2dismod -f status reqtimeout env autoindex access_compat auth_basic authn_file authn_core alias access_compat + echo "ServerName localhost" >> /etc/apache2/apache2.conf + + # CONFIGURE LAMP FOR NEXTCLOUD ########################################## diff --git a/nextcloudpi.sh b/nextcloudpi.sh index ca5f0356..dedaad0a 100644 --- a/nextcloudpi.sh +++ b/nextcloudpi.sh @@ -68,8 +68,6 @@ EOF chmod 700 /home/www/ncp-launcher.sh echo "www-data ALL = NOPASSWD: /home/www/ncp-launcher.sh , /sbin/halt" >> /etc/sudoers - echo "ServerName localhost" >> /etc/apache2/apache2.conf - # NEXTCLOUDPI MOTD ########################################## rm -rf /etc/update-motd.d -- cgit v1.2.3