Wow, thank you for taking the time to put that together. Literally, that is exactly what I was doing. In summary, following the instructions in your link, which are the same except for the addition of apc.ttl=7200
in Archwiki - Nextcloud 8.1 APCu. Here is exactly what I have been doing for APCu:
/etc/webapps/nextcloud/config/config.php
...
'memcache.local' => '\OC\Memcache\APCu',
/etc/webapps/nextcloud/php.ini
...
; APCu cache for nextcloud
;
extension=apcu
apc.ttl=7200
apc.enable_cli = 1
/etc/php-legacy/php-fpm.d/nextcloud.conf
...
; uncomment if php-apcu is installed and used
php_value[extension] = apcu
php_admin_value[apc.ttl] = 7200
...
But still, as soon as the webserver is restarted, nextcloud crashes:
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
And the logs:
# tail -n 2 /var/log/php-fpm-legacy/access/nextcloud.log
2023-09-07T13:53:33-0500 -: "POST /nextcloud/index.php" 500 //usr/share/webapps/nextcloud/index.php 13.493 4096 74.11%
2023-09-07T14:01:57-0500 -: "POST /nextcloud/index.php" 500 //usr/share/webapps/nextcloud/index.php 13.176 4096 75.90%
and
# tail -n2 /var/log/nextcloud/nextcloud.log
{"reqId":"mH1konEWsRgMQtuvwio8","level":3,"time":"2023-09-07T10:03:49+00:00","remoteAddr":"XXX.XXX.X.XXX","user":"david","app":"PHP","method":"PROPFIND","url":"/nextcloud/remote.php/dav/calendars/david/","message":"Module \"bcmath\" is already loaded at Unknown#0","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"27.0.2.1","data":{"app":"PHP"}}
{"reqId":"lgffQIN6PeE3Fe2OWmQR","level":3,"time":"2023-09-07T10:04:00+00:00","remoteAddr":"XXX.XXX.X.XXX","user":"--","app":"PHP","method":"GET","url":"/nextcloud/js/core/merged-template-prepend.js?v=b8353225-5","message":"Module \"bcmath\" is already loaded at Unknown#0","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"27.0.2.1","data":{"app":"PHP"}}
(note: there is nothing in the nextcloud.log
, those are just old entries complaining about bcmath)
After removal of APCu, everything words fine, just slow… Any other ideas? This is php 8.1.