diff --git a/lamp.sh b/lamp.sh index e5438c846..40a28cda6 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 ca5f0356f..dedaad0a2 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