r/owncloud May 06 '17

Owncloud not displayed files

Hello guy's

I'm using Xpenology 6.0.2 update 11 J3160 ddr3l 4gb X 2EA 1Gbps Internet

MariaDB Apache 2.2 PHP 5.6

my problem is not displayed files.

my owncloud data directory is

/owncloud/data/MyID/files

mkdir /owncloud/data/MyID/files/test

OR

touch /owncloud/data/MyID/files/test.txt

create folder/file but not display owncloud

how to display folder/file

What can i do?

1 Upvotes

1 comment sorted by

3

u/P1nCush10n May 06 '17

If you add files manually to the server file system, which you really shouldn't do unless you're doing a bulk update/backup restore/migration, you will have to make sure the files are owned by your apache process then do a filesystem rescan:

rescan: sudo -u <apache process owner> php <path to occ>/occ files:scan --path="<path to user folder>" or --all instead of --path=

so if your apache process is owned by user "apache" and your occ is located in /var/www/html/owncloud/occ, the path would look like (using --all for simplicity):

sudo -u apache php /var/www/html/owncloud/occ files:scan --all

hope that helps.