nextcloud/server

Presense of /var/www/html/data after install to another data folder

Open

#3,610 opened on Feb 24, 2017

View on GitHub
 (4 comments) (0 reactions) (0 assignees)PHP (34,953 stars) (4,865 forks)batch import
1. to developenhancementfeature: install and updategood first issueneeds review

Description

[root@nextcloud-test nextcloud]# ls -l /var/www/html/nextcloud/data/
total 8
drwxr-xr-x.  2 apache apache   62 Feb 23 09:41 .
drwxr-xr-x. 15 apache apache 4096 Feb 23 09:38 ..
-rw-r--r--.  1 apache apache  284 Feb 23 09:41 .htaccess
-rw-r--r--.  1 apache apache    0 Feb 23 09:41 index.html
-rw-r--r--.  1 apache apache    0 Feb 23 09:40 nextcloud.log
[root@nextcloud-test nextcloud]# grep data /var/www/html/nextcloud/config/config.php
  'datadirectory' => '/nextcloud_btrfs',
[root@nextcloud-test nextcloud]# ls -l /nextcloud_btrfs/
total 20
drwxrwx---.  1 apache apache 156 Feb 23 09:44 .
dr-xr-xr-x. 18 root   root   247 Feb 22 13:34 ..
drwxr-xr-x.  1 apache apache  40 Feb 23 14:46 admin
drwxr-xr-x.  1 apache apache  56 Feb 23 09:45 appdata_ocgajahh0ong
drwxr-xr-x.  1 apache apache  26 Feb 23 09:44 files_external
-rw-r--r--.  1 apache apache 284 Feb 23 09:41 .htaccess
-rw-r--r--.  1 apache apache   0 Feb 23 09:41 index.html
-rw-r--r--.  1 apache apache   0 Feb 23 09:42 nextcloud.log
-rw-r--r--.  1 apache apache   0 Feb 23 09:41 .ocdata
[root@nextcloud-test nextcloud]#

I suppose the cause was failure at the first installation when the apache user didn't get the RW permissions to /nextcloud_btrfs/.

Contributor guide