I want to change my data folder. Now is /var/www/html/nextcloud/data i want /media/HDD ← is external storage and i would this directory default (home folder when i log in to NC13).
example
Nextcloud version 13.0.4
Operating system and version Ubuntu 16.04 LTS
Apache or nginx version last ( i install NC few days ago)
PHP version (like up)
The error tells you what to do: Check if the invisible file .ocdata is in the new data directory.
Do:
cd /media/hdd
ls -la
When something is not correct, try to copy it again with some flags. cp -a or others. More insights gives you the command man cp
Dont use the : for your directory. It´s only
chown group:user /path
so
sudo chown -R www-data:www-data /media/hdd
will be correct.