From efcb10e9bca24174f870d68f5df8300217b52917 Mon Sep 17 00:00:00 2001 From: Ze'ev Schurmann Date: Thu, 8 May 2025 00:28:26 +0200 Subject: [PATCH] Tested and safe for Nextcloud Hub 10 - No Domain Name --- setupnc.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setupnc.sh b/setupnc.sh index 0839708..225c9b2 100644 --- a/setupnc.sh +++ b/setupnc.sh @@ -48,6 +48,13 @@ a2dismod mpm_prefork a2enmod mpm_event proxy proxy_fcgi setenvif rewrite a2enconf php8.3-fpm systemctl restart apache2 +cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf.original +linenum=$(cat /etc/apache2/apache2.conf | grep -n '' | cut -d: -f1) +until sed -n "${linenum}p" /etc/apache2/apache2.conf | grep "AllowOverride"> /dev/null; do + ((linenum++)) +done +sed -i "${linenum}s/\bNone\b/All/" /etc/apache2/apache2.conf +systemctl restart apache2 ## Set optimal settings for PHP to make Nextcloud happy...