Nextcloud version: 15.0.7
Operating system and version: Fedora 29
Apache or nginx version: nginx 1.16.0
PHP version: 7.3.5
The issue you are facing:
I get the error: " The PHP OPcache module is not loaded. For better performance it is recommended to load it into your PHP installation."
I have installed APCu memcach using dnf install php-pecl-apcu
and have put 'memcache.local' => '\OC\Memcache\APCu',
in my config.php in the nextcloud directory.
I have also changed apc.enable_cli
to 1
in /etc/php.d/40-apcu.ini
and restarted both php-fpm and nginx.
I have tried escaping the slashes like 'memcache.local' => '\\OC\\Memcache\\APCu',
, but that does nothing either.
Is this the first time you’ve seen this error? (Y/N): Yes, it worked on my previous server.
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'log_type' => 'syslog',
'datadirectory' => '/var/www/nextclouddata',
'updatechecker' => false,
'check_for_working_htaccess' => false,
'asset-pipeline.enabled' => false,
'assetdirectory' => '/var/www/nextcloud',
'memcache.local' => '\OC\Memcache\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/nextcloud/apps',
'url' => '/apps',
'writable' => true,
),
1 =>
array (
'path' => '/var/www/nextcloud/apps',
'url' => '/apps-appstore',
'writable' => true,
),
),
'instanceid' => '[CENSORED]',
'passwordsalt' => '[CENSORED]',
'secret' => '[CENSORED]',
'trusted_domains' =>
array (
0 => '[CENSORED]',
),
'overwrite.cli.url' => '[CENSORED]',
'dbtype' => 'mysql',
'version' => '15.0.7.0',
'dbname' => '[CENSORED]',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => '[CENSORED]',
'dbpassword' => '[CENSORED]',
'logtimezone' => 'UTC',
'installed' => true,
'theme' => '',
'loglevel' => 2,
'maintenance' => false,
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_smtpauthtype' => 'LOGIN',
'twofactor_enforced' => 'false',
'twofactor_enforced_groups' =>
array (
),
'twofactor_enforced_excluded_groups' =>
array (
),
'data-fingerprint' => '[CENSORED]',
);
Does anyone happen to know how to make sure APCu memcaching gets applied so the warning goes away?