Add ACPu enabler

This commit is contained in:
Alexandre CATTEAU 2023-06-20 18:29:30 +02:00
parent c3a90b8e7a
commit e4427e2c40
2 changed files with 7 additions and 0 deletions

1
19-apcu-enab.ini Normal file
View File

@ -0,0 +1 @@
apc.enable_cli=1

View File

@ -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 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)). [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/<version>/cli/conf.d/`. This is **not** done by install script (as it would not sustain
after a PHP version upgrade).
### Files ### 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.service` is the service file executing Nextcloud's PHP cron job
* `cloud-cron.timer` is the timer starting the service every 5 minutes * `cloud-cron.timer` is the timer starting the service every 5 minutes
#### Installation #### Installation