Several OC Instances on one server



Hi there,

I set up an owncloud-instance via webinstall on Debian 8.5 (testing), with Apache 2.4, PHP7, MySQL-DB, APCu for memcaching and Redis for filelocking like this in \var\www\cloudinstance1:

  '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,

It works fine and everything is ok.

Now I would like to create more instances on the same server.
I don't see any problems with several instances in different webspace-folders and several mysql-databases.

But what about APCu and Redis (communication via socket) - are these components ready to be used simultanously from several instances, or will it crash?
If it will crash - can you please tell me how to set up multiple oc-instances on one server?


Custom Prefix Keys & Memcached or Redis?

Short answer: yes

Explanation: we prefix all Keys which are stored in any memcache with the instance Id to avoid clashes