Nextcloud: Difference between revisions
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> | ||
Revision as of 20:39, 24 August 2020
Nextcloud is a self-hosted cloud solution. It is a fork of ownCloud by the original founder.
It is open-source under AGPL-3.
Administration
Configuration
The primary configuration file is config/config.php
.
You can view a list of configuation parameters here.
I recommend adding the following to your configuation file:
'simpleSignUpLink.shown' => false,
disables some sign up links which direct to nextcloud.com.
Moving data directory
See https://help.nextcloud.com/t/howto-change-move-data-directory-after-installation/17170
Nextcloud doesn't include a clean built-in way to migrate data.
The proper way to do it is to fix all the paths in the Nextcloud database. However, this is slightly complicated and prone to errors.
The easy way is to create a symlink:
sudo -u www-data php /path/to/nextcloud/occ maintenance:mode --on mkdir -p /new/path/to/data rsync -a /path/to/data/. /new/path/to/data mv /path/to/data /path/to/dataBackup ln -s /new/path/to/data /path/to/data chown -h www-data:www-data /path/to/data # To set symlink 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
Caching
You should use caching to achieve a reasonable performance.
NextCloud recommend APCu for local caching and Redis for lock caching:
'memcache.local' => '\OC\Memcache\APCu', 'memcache.locking' => '\OC\Memcache\Redis', 'redis' => array( 'host' => 'localhost', 'port' => 6379, ),
Markdown
NextCloud comes with its own WYSIWYG markdown editor.
If you prefer to type markdown yourself, do the following:
- Disable the "Text" app
- Install the "Plain text editor" app
- Install the "Markdown Editor" app
Markdown does not have a Latex app.