Tested and safe for Nextcloud Hub 10 - No Domain Name

This commit is contained in:
ZAKS Web 2025-05-08 00:28:26 +02:00
parent 6fd695cc83
commit efcb10e9bc
1 changed files with 7 additions and 0 deletions

View File

@ -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 '<Directory /var/www/>' | 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...