From e4427e2c4059428d1b202fa7a6d5a99d3ea4f7f4 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Tue, 20 Jun 2023 18:29:30 +0200 Subject: [PATCH] Add ACPu enabler --- 19-apcu-enab.ini | 1 + README.md | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 19-apcu-enab.ini diff --git a/19-apcu-enab.ini b/19-apcu-enab.ini new file mode 100644 index 0000000..008bcab --- /dev/null +++ b/19-apcu-enab.ini @@ -0,0 +1 @@ +apc.enable_cli=1 diff --git a/README.md b/README.md index fc8e133..1c13a92 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,13 @@ This repository contains Systemd service and timer basic units to run Nextcloud's own cron job regularly (as recommended in the [official documentation](https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/background_jobs_configuration.html#systemd)). +### IMPORTANT +For the cron job to execute correctly, APCu must be enabled. This not the case by default. You need to add +`19-apcu-enab.ini` to `/etc/php//cli/conf.d/`. This is **not** done by install script (as it would not sustain +after a PHP version upgrade). + ### Files +* `19-apcu-enab.ini` is a config file to enable ACPu in PHP * `cloud-cron.service` is the service file executing Nextcloud's PHP cron job * `cloud-cron.timer` is the timer starting the service every 5 minutes #### Installation