Can't change data location to /home

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2):17.02
Operating system and version (eg, Ubuntu 17.04):18.04
Apache or nginx version (eg, Apache 2.4.25): nginx 1.8.1
PHP version (eg, 7.1):7.2

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N):Y

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:


The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):


The output of your Apache/nginx/system log in /var/log/____:


I have install lnmp .i try to install nextcloud by bt panle,when 1st step,i try to change data location to /home/data ,it tell me can’t to creat or write data location /home/data ,i have change the data forder permission to 777 and set user to www.why i get this message?i only wan’t to change data location to this forder.

my site is,anyone can install it for a try.

/home/data is not a useful location for the data directory, as in /home there are the home directories of the system users. You could put it into your personal user directory, say your user is dzhl, that would be /home/dzhl/data. I would prefer a directory like
In both cases remember that the data directory must be owned by the user that runs the web server.
sudo chown -R www-data:www-data /var/lib/nextcloud/data
would do the trick.

only if he runs nginx processes as user www-data. unless it’s change in /etc/nginx/nginx.conf with a user www-data; statement the default nginx user is nginx.

just check with ps -ef | grep nginx