‘\OC\Memcache\APCu’, not working in config.php

Hello,

I have installed Nextcloud 12.0.4 on my Strato Linux Server (Ubuntu 16.04.3).

Everything works fine, except these cache hints on the nextcloud settings page, there would not be a PHP memory cache configured.

According to the manual I have inserted a line ‘memcache.local’ => ‘\OC\Memcache\APCu’, in the config.php. And like many others, I received the HTTP ERROR 503 afterwards.

The php – m command tells me, that the apcu module is installed, but a phphinfo() output doesn’t contain a apcu section and the modules loaded section of the nextclouds issue reporting doesn’t contain a apcu entry. But the imo relevant directory /etc/php/7.0/fpm/conf.d contains a link
20-apcu.ini -> /etc/php/7.0/mods-available/apcu.ini

I read a lot, tried a lot and still no idea how to solve the problem. Please, can somebody help me?

Below, there are some configuration informations

config/config.php

$CONFIG = array (
‘instanceid’ => ‘ociiz1drbk68’,
‘passwordsalt’ => ‘xxxxxxxxxxxxxxxxxx’,
‘secret’ => ‘xxxxxxxxxxxxxxxxxxxxxxxxxxx’,
‘trusted_domains’ =>
array (
0 => ‘cloud.rerettek.de’,
),
‘datadirectory’ => ‘/var/www/vhosts/rerettek.de/nextcloud/data’,
‘overwrite.cli.url’ => ‘xxxxxxxxxxxxxxxxxxx’,
‘dbtype’ => ‘sqlite3’,
‘version’ => ‘12.0.4.3’,
‘installed’ => true,
‘mail_smtpmode’ => ‘php’,
‘mail_smtpauthtype’ => ‘LOGIN’,
‘mail_from_address’ => ‘admin’,
‘mail_domain’ => ‘cloud.rerettek.de’,
‘maintenance’ => false,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
);

Output of php -m

[PHP Modules]
apcu
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
igbinary
imagick
imap
intl
json
libxml
mbstring
mcrypt
memcached
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
redis
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

output of nextclouds issue reporting

Server configuration detail

Operating system: Linux 4.4.0-042stab124.2 #1 SMP Fri Sep 1 20:42:18 MSK 2017 x86_64

Webserver: Apache (fpm-fcgi)

Database: sqlite3 3.11.0

PHP version: 7.0.22-0ubuntu0.16.04.1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, cgi-fcgi, mysqlnd, PDO, xml, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, json, exif, mcrypt, memcached, mysqli, pdo_mysql, pdo_sqlite, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache

Nextcloud version: 12.0.4 - 12.0.4.3

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status

Array

List of activated apps
Enabled:
 - activity: 2.5.2
 - bruteforcesettings: 1.0.3
 - comments: 1.2.0
 - dav: 1.3.0
 - federatedfilesharing: 1.2.0
 - federation: 1.2.0
 - files: 1.7.2
 - files_pdfviewer: 1.1.1
 - files_sharing: 1.4.0
 - files_texteditor: 2.4.1
 - files_trashbin: 1.2.0
 - files_versions: 1.5.0
 - files_videoplayer: 1.1.0
 - firstrunwizard: 2.1
 - gallery: 17.0.0
 - issuetemplate: 0.3.0
 - logreader: 2.0.0
 - lookup_server_connector: 1.0.0
 - nextcloud_announcements: 1.1
 - notifications: 2.0.0
 - oauth2: 1.0.5
 - password_policy: 1.2.2
 - provisioning_api: 1.2.0
 - serverinfo: 1.2.0
 - sharebymail: 1.2.0
 - survey_client: 1.0.0
 - systemtags: 1.2.0
 - theming: 1.3.0
 - twofactor_backupcodes: 1.1.1
 - updatenotification: 1.2.0
 - workflowengine: 1.2.0
Disabled:
 - admin_audit
 - encryption
 - files_external
 - user_external
 - user_ldap

Configuration (config/config.php)
{
    "instanceid": "ociiz1drbk68",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "cloud.rerettek.de"
    ],
    "datadirectory": "\/var\/www\/vhosts\/rerettek.de\/nextcloud\/data",
    "overwrite.cli.url": "xxxxxxxxxxxxxxxxxxxxxxxxx",
    "dbtype": "sqlite3",
    "version": "12.0.4.3",
    "installed": true,
    "mail_smtpmode": "php",
    "mail_smtpauthtype": "LOGIN",
    "mail_from_address": "admin",
    "mail_domain": "cloud.rerettek.de",
    "maintenance": false
}

Did you restart the web server? I think php modules are only loaded at server startup.