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, 5 years and 49 days ago. Viewed 1,749 times. #1
[edit] [rdf]


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


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: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt