Nextcloud 10 - change of storage location

Hello,

I’m running Fedora Server 25 (Kernel 4.9.13-201.fc25.x86_64) and just installed Nextcloud 10.0.4-1.fc25 by using “dnf install nextcloud”. It all installed all package dependencies.

In the system I have disk raid (using btrfs raid 1) and a btrfs subvolume called nextcloud. This is mounted to /nextcloud

[root@homer conf.d]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs tmpfs 7.8G 4.0K 7.8G 1% /dev/shm
tmpfs tmpfs 7.8G 1.1M 7.8G 1% /run
tmpfs tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/sdc3 btrfs 101G 2.7G 98G 3% /
tmpfs tmpfs 7.8G 12K 7.8G 1% /tmp
/dev/sdc3 btrfs 101G 2.7G 98G 3% /home
/dev/sdc1 ext4 976M 128M 781M 15% /boot
/dev/sda btrfs 2.8T 154G 2.6T 6% /storage
tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/0
/dev/sda btrfs 2.8T 154G 2.6T 6% /nextcloud

[root@homer conf.d]# mount | grep nextcloud
/dev/sda on /nextcloud type btrfs (rw,relatime,seclabel,space_cache,subvolid=420,subvol=/nextcloud)
All user and user data as well as the apps should be stored in /nextcloud . Can you please tell me how I need to configure it?

I haven’t configured Nextcloud 10 yet. Its just installed.

It seems there is a config file in /etc/nextcloud/config.php where this can be changed:

[root@homer /]# cat /etc/nextcloud/config.php

<?php $CONFIG = array ( "log_type" => "syslog", "datadirectory" => "/var/lib/nextcloud/data", "updatechecker" => false, "check_for_working_htaccess" => false, "asset-pipeline.enabled" => false, "assetdirectory" => '/var/lib/nextcloud', "preview_libreoffice_path" => '/usr/bin/libreoffice', "apps_paths" => array( 0 => array ( 'path'=> '/usr/share/nextcloud/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ( 'path' => '/var/lib/nextcloud/apps', 'url' => '/apps-appstore', 'writable' => true, ), ), ); [root@homer /]# I would highly appreciate if somebody could help . Regards, Niels

I would leave the apps data at the default location. Dont see a reason to change it. The datadirectory can be changed. If you start the installation you will be asked where your data folder should be. If you got your permissions in order you should be able to enter /nextcloud for the datafolder. You can also change config.php after the installation. Just move the data from the original location to the new location and set the appropriate permissions.

Okay, thanks a lot!
And it worked !