Enable Caching Redis Error

Hello everybody,

i can´t configure the Redis-caching-server. For better understanding i do this:
sudo vim /etc/redis/redis.conf
change port 67379 to 0
uncomment unixsocket /var/run/redis/redis.sock
change unixsocketperm 700 to unixsocketperm 770

sudo usermod -a -G redis www-data
sudo service apache2 restart
sudo service redis-server start
sudo vim /var/www/html/nextcloud/config/config.php

my config.php

<?php $CONFIG = array ( 'instanceid' => 'id', 'passwordsalt' => 'PWSALT', 'secret' => 'Secret', 'trusted_domains' => array ( 0 => 'cloud.domain.de', ), 'datadirectory' => '/media/cloud', 'overwrite.cli.url' => 'myDomain', 'dbtype' => 'mysql', 'version' => '11.0.2.7', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'nextcloud', 'dbpassword' => 'dbPasswort', 'logtimezone' => 'UTC', 'installed' => true, ), 'memcache.local' => '\OC\Memcache\APCu', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'filelocking.enabled' => 'true', 'redis' => array ( 'host' => '/var/run/redis/redis.sock', 'port' => 0, 'timeout' => 0.0, ); When i saved the configuartion. And restart Apache i get a white screen :frowning: error. I dont find a solution. I tested different memcache settings, but without success. Please help me :wink: Thanks a lot

Did you send a snippet only? Otherwise your config.php is not complete.

‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ =>
array (
‘host’ => ‘/var/run/redis/redis.sock’,
‘port’ => 0,
‘timeout’ => 0.0,
),
);

my example config:

   <?php
$CONFIG = array (
'instanceid' => '...',
'passwordsalt' => '...',
'secret' => '...',
'trusted_domains' =>
array (
0 => '<yourcloud.dedyn.io>',
1 => '<192.168.2.17>',
),
'datadirectory' => '/var/nc_data',
'dbtype' => 'mysql',
'version' => '11.0.2.7',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => '...',
'htaccess.RewriteBase' => '/',
'overwrite.cli.url' => '/',
'overwriteprotocol' => 'https',
'loglevel' => 1,
'logtimezone' => 'Europe/Berlin',
'logfile' => '/var/nc_data/nextcloud.log',
'log_rotate_size' => 104857600,
'cron_log' => false,
'installed' => true,
'filesystem_check_changes' => 1,
'quota_include_external_storage' => false,
'knowledgebaseenabled' => false,
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => 'true',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
),
'maintenance' => false,
'theme' => '',
'integrity.check.disabled' => false,
'updater.release.channel' => 'stable',
'enable_previews' => true,
);

Add the “),” and it should work?!
Cheers, Carsten

Thanks, i tried your solution with );. But there was no success. After this i tried your configuration. And it works :-). I didnt find out why^^. Do you have an idea?

Thank you for your help!!!

You have to provide the config.php that leads to a blank page.
Unless i cannot check your config. Is it still neccesary to investigate further or is it solved for now?

You could try this script made for the VM: https://github.com/nextcloud/vm/blob/master/static/redis-server-ubuntu16.sh Be sure to check all parameters ($variables) first and change them if necessary.

Thanks! There no further action. The script is a good enough. Have a nice day :slight_smile: