Nextcloud_okm

About https://nextcloud.com

Applicable models: x.64 series
Applicable TOS4: 4.1.27 or later versions
Applicable TOS5: 5.0.130 or later versions

Required packages:
apache24
PHP81_okm
MariaDB
Cron_okm

For upgrade, don't skip any major version (20.0.0.0, 21.0.0.0, 22.0.0.0 etc)

Module WebUI for additional settings can be accesses at:

TOS4: http(s)://yournasip:port/modules/Nextcloud_okm/www
TOS5: click on Support & Help from app description inside the App Center

In case you have additional app installed

After any upgrade version is installed, after the upgrade is completed, within Nextcloud WebUI restore your installed apps: go to Application control >> Restore apps

During setup choose this shared folder on your NAS as example, to store your data: 

/mnt/md0/appdata/NextcloudData (TOS4)
/Volume1/NextcloudData (TOS5)
As in example above, use the full path in nextcloud setup (symlinks can cause issues as Nextcloud doesn't allow symlinks as default)

As from version 21.0.2 apc need to be enable in php.ini to run under cli

Go to module WebUI and from menu choose Configuration files >> Edit php.ini
Add this line apc.enable_cli = 1 at the beginnig of the file as below (if is not already there):

[PHP]

;;;;;;;;;;;;;;;;;;;
; About php.ini  ;
;;;;;;;;;;;;;;;;;;;

apc.enable_cli = 1

; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.

Add cache memory

After Nextcloud is configured, add this line on nextcloud config.

'memcache.local' => '\OC\Memcache\APCu',

Optional add also Redis mem cached in nextcloud config.

'filelocking.enabled' => true,
'memcache.local' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
 'redis' => array(
     'host' => '127.0.0.1',
     'port' => 6379,
      ),

Here below some warning messages that you can encounter and a way to fix them

Convert file cache to big init

Stop Nextcloud module
Connect with SSH and run

sudo -u www-data Nextcloud_okm occ db:convert-filecache-bigint

It can take hours to complete.
When is done, start Nextcloud module

Add missing indexes

Connect with SSH and run

sudo -u www-data Nextcloud_okm occ db:add-missing-indices

To add the cron job use the app Cron_okm and add the following job

*/5  *  *  *  * www-data /usr/local/Nextcloud_okm/config/nextcloudcron

About

A safe home for all your data
Access & share your files, calendars, contacts, mail & more from any device, on your terms

outkastm

Share
Published by
outkastm

Recent Posts

Seafile

A new way to organize your files About: https://www.seafile.com/en/home In this tutorial, i will show…

1 month ago

Wizarr

Automatic user invitation and management system for Plex, Jellyfin, Emby, Audiobookshelf, Romm, Komga and Kavita.…

1 month ago

VueTorrent

The sleekest looking WebUI for qBittorrent About : https://github.com/VueTorrent/VueTorrent Applicable models: x.64 series, ARMv8 series, ARMv8.2 seriesApplicable TOS6: 6.0.420…

2 months ago

Nginx Proxy Manager

Expose your services easily and securely About: https://nginxproxymanager.com In this tutorial, i will show you…

2 months ago

Vaultwarden

Unofficial Bitwarden compatible server About : https://github.com/dani-garcia/vaultwarden Applicable models: x.64 seriesApplicable TOS6: 6.0.420 or later versions Required packages: Caddy App…

2 months ago

Watchtower

Automatically update containerized app About: https://github.com/containrrr/watchtower In this tutorial, i will show you how to…

2 months ago