Redis configuration (Owncloud 10)

Hey there,

I've setup a new instance of owncloud 10 on Ubuntu 16.04, and it has been working great. I was using APCu for memcache, but decided to install Redis to get rid of the pesky warning about Transactional File Locking.

When I add 'memcache.locking' => '\OC\Memcache\Redis' (and all the redis server info) to config.php, any new users are unable to login. Existing users are fine, but any new users created while Redis is enabled have to be deleted and recreated after it is disabled. For what it's worth, I don't see any issues when I add 'memcache.local' => '\OC\Memcache\Redis', but its hard to say if it is really working or not.

I think I probably have something wrong in my Redis server config. Would anyone be willing to post theirs?

Mine is working with the second example shown here:

Thanks kljh. I think i have my owncloud config.php set up correctly. I think my problem is with the Redis redis.conf configuration.

Would you mind telling me how you installed Redis? Thanks!

Never mind. I was able to follow this method:

But had to make the change suggested in the comments for step #11. After doing that I was able to get Redis working on my OCX sites.

Are you using apache or nginx? I'm on nginx, and wasn't able to get past this, so I reverted to my original set up. But if someone else on nginx has had success, I might try again.

Sorry to reopen an old topic, but there is a difference between what they put in the how to, and what is in the official documentation.

For example:

Official DOC:

‘memcache.local’ => ‘\OC\Memcache\Redis’,


‘memcache.local’ => ‘\OC\Memcache\Redis’,

Which one is correct? with a bar or two?

I don’t see a difference between the two lines you pasted.

Perhaps have a look in the current documentation?

1 Like

I bit late in the game. I just installed Redis for caching. Followed the whole threat above.
I noticed that changing my socket to the unsafe 777 (chmod 777) the config worked. So for me it was a permissions issue I had to work out.

config# cat config.php
$CONFIG = array (
  'instanceid' => 'oceqwik3cett',
  'passwordsalt' => 'xxxxxxx',
  'secret' => 'xxxxxxx',
  'trusted_domains' => 
  array (
    0 => 'xxxxxxx',
    1 => 'xxxxx',
  'datadirectory' => '/home/server/owncloud-data',
  'overwrite.cli.url' => 'https://xxxxxxx',
  'dbtype' => 'mysql',
  'version' => '',
  'dbname' => 'ownCloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ownCloud',
  'dbpassword' => 'xxxxxxx',
  'logtimezone' => 'UTC',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/home/server/xxxxxx/owncloud/apps',
      'url' => '/apps',
      'writable' => false,
    1 => 
    array (
      'path' => '/home/server/xxxxxx/owncloud/apps-external',
      'url' => '/apps-external',
      'writable' => true,
  'installed' => true,
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
  'updater.secret' => 'xxxxxxx',
  'mail_domain' => '',
  'mail_from_address' => 'xxxxxx',
  'mail_smtpmode' => 'php',
'filelocking.enabled' => true,
'memcache.locking' => '\OC\Memcache\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'password' => '',
    'dbindex' => 0,


i think this could be dangerous to allow everyone to read and write to the socket. Maybe you could work with groups instead? From what i know you could add the web server user to the redis group so that you can use more strict permissions.