I recently installed Nextcloud with the intention of using it as a self hosted server to replace Google Drive. I unfortunately could not find the version it was but do know I installed it just today (29th August 2022)
Anyway, after doing a manual installation (on Ubuntu 22.04 Desktop LTS), playing around with nextcloud I realised I wanted to change the data directory. So i moved this data folder to my media folder and made the changes accordingly on the config file. I then did chown -R www-data:www-data /path/to/directory to allow for the web service to have write access to the file. When restarting apache2 and checking nextcloud out. It gave the error:
I have moved data back to /var/www and did chown and surprisingly enough it gave write privileges to www-data, but moving it to my media folder and doing it there, it never responded to any changes. I’m confused and I do not know what to do.
– In /var/www/nextcloud, www-data owns the files after using chown
– In Media Storage. www-data do not own the files. No changes occurred after using chown command.
Sadly enough your post is missing almost all specific technical information. Thanks for your post, but please take a little time to get acquainted with the forum and make a stronger effort to troubleshoot. It is the least you can do when asking others to help you:
Search your question as keywords on this forum. If you find something useful, link it directly into this post.
These are the exact same steps we volunteers will be following to help you! So, get to it!
PS Following some tutorials on the web could fail since not everyone claiming to be able to setup NC correctly really IS capable doing so.
BTW: I did some searching on “.ocdata” through the forumsearch-tool and found several entries… I picked only 3 of them, hoping to present a solution for you… if you won’t find a solution there you’re free to search yourself