Enhance Speed of Owncloud 8.x or Nextcloud

After the mega update into version 8.2 some of us encountered long response times using Owncloud. The reason is, that file locking was changed in the new version. This is a good reason to change your caching configuration.

Explanation just for Debian. Same thing is true for Redhat, well, except the yum

Get rid of other caching daemons than Redis.

Install Redis Server and Tools:

sudo apt-get install redis-*

The installer sets up the system so systemd loads Redis on startup.

Edit the config.php of owncloud. Add the following:

 'memcache.local' => '\OC\Memcache\Redis',
 'redis' => array(
 'host' => 'localhost',
 'port' => 6379,
 'timeout' => 0.0,
 ),
 'memcache.locking' => '\\OC\\Memcache\\Redis',

Restart your Application server (Apache/NGINX)

Of course you can fine tune Redis, but it should work for most installations.

 

Locked out of your QNAP?

When using the feature „Security – Security Level – Allow Connections from the list only“ you will lock yourself out, when not adding your local network.
Well, if this happened you access your device via SSH using the network which you already allowed. Then you go to

[/mnt/HDA_ROOT/.config] and edit ipsec.conf.
Add another row with your local network. This can look like this:

1:192.168.0.0:255.255.255.0:0:1444485407

Reboot your QNAP and try accessing it from your local network.