Nextcloud: Difference between revisions

443 bytes added ,  24 August 2020
Line 29: Line 29:
chown -R www-data:www-data /new/path/to/data # To set actual data dir ownership
chown -R www-data:www-data /new/path/to/data # To set actual data dir ownership
sudo -u www-data php /path/to/nextcloud/occ maintenance:mode --off
sudo -u www-data php /path/to/nextcloud/occ maintenance:mode --off
</pre>
===Caching===
See [https://docs.nextcloud.com//server/13/admin_manual/configuration_server/caching_configuration.html#id4 Caching configuration].
You should use caching to achieve a reasonable performance. 
NextCloud recommend APCu for local caching and Redis for lock caching:
<pre>
'memcache.local' => '\OC\Memcache\APCu',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
  'host' => 'localhost',
  'port' => 6379,
),
</pre>
</pre>