For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > Owncloud > Transactional File Locking

Transactional File Locking

Created by dave. Last edited by dave, 189 days ago. Viewed 259 times. #1
[edit] [rdf]
labels
attachments
(2019-01-10)

Problem

Owncloud warning on Settings -> General page: Transactional file locking should be configured to use memory-based locking

Solution

Install redis

Install php-redis (you may need some different dependencies to make this work)

Literal config.php fragment:

// memcache configuration follows
  'memcache.local' => '\OC\Memcache\APCu',
  'memcache.distributed' => '\\OC\Memcache\Redis',
  'memcache.locking' => '\OC\Memcache\Redis',
  'redis' => [
    'host' => 'localhost',  // Can also be a unix domain socket => '/tmp/redis.sock'
    'port' => 6379,
    'timeout' => 0,
    'password' => '',       // Optional, if not defined no password will be used.
    'dbindex' => 0          // Optional, if undefined SELECT will not run and will
                            // use Redis Server's default DB Index.
  ],
// memcache configuration ends

Restart httpd

Reload settings page.

(Valid for Owncloud 10.0.10)

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt