From e5e262693de3354da590171c767681f9bbb5b6b3 Mon Sep 17 00:00:00 2001 From: "github@kiekerjan.isdronken.nl" Date: Mon, 3 Jan 2022 23:19:42 +0100 Subject: [PATCH] incorrect place to edit apcu file --- setup/nextcloud.sh | 4 ++++ setup/web.sh | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup/nextcloud.sh b/setup/nextcloud.sh index 15834d1c..a25698e7 100755 --- a/setup/nextcloud.sh +++ b/setup/nextcloud.sh @@ -16,6 +16,10 @@ apt_install php php-fpm \ php-dev php-gd php-xml php-mbstring php-zip php-apcu php-json \ php-intl php-imagick php-gmp php-bcmath +# Enable apc is required before installing nextcloud 21 +tools/editconf.py /etc/php/$(php_version)/mods-available/apcu.ini -c ';' \ + apc.enabled=1 + InstallNextcloud() { version=$1 diff --git a/setup/web.sh b/setup/web.sh index b2cbaf6b..12133fe2 100755 --- a/setup/web.sh +++ b/setup/web.sh @@ -63,10 +63,6 @@ tools/editconf.py /etc/php/$(php_version)/fpm/php.ini -c ';' \ tools/editconf.py /etc/php/$(php_version)/fpm/pool.d/www.conf -c ';' \ env[PATH]=/usr/local/bin:/usr/bin:/bin \ -# Enable apc is required before installing nextcloud 21 -tools/editconf.py /etc/php/$(php_version)/mods-available/apcu.ini -c ';' \ - apc.enabled=1 - # Configure php-fpm based on the amount of memory the machine has # This is based on the nextcloud manual for performance tuning: https://docs.nextcloud.com/server/17/admin_manual/installation/server_tuning.html # Some synchronisation issues can occur when many people access the site at once.