Seems lots of chatter about this on github etc but no real solution?
Admin page has warning: “Your data directory and your files are probably accessible from the internet. The .htaccess file that ownCloud provides is not working. We strongly suggest that you configure your webserver in a way that the data directory is no longer accessible or you move the data directory outside the webserver document root…” Any update on this?
You should read the installation manual on the nextcloud site. There is a step where they give you the good permission to put on folders.
You should look the installation process from the beginning in order to see if you didn’t miss an important thing.
You can also look if in your nextcloud folder you have this two files : .htaccess and .user.ini , if not you have to pick them from your downloaded nextcloud.zip they are in the root folder
Thank you I recently had changed this back when trying to reconfigure my nextcloud hostname and just ran across the security warning in the nextcloud console. Your post just saved me a lot of time.
You have to change it into the nextcloud conf file in (by default ) /var/www/nextcloud/config/config.php
You will have a line with this ’/var/www/nextcloud/data’
You have to modify to a data folder that is outside /var/www/
thank you in advance. sorry @Nemskiller i was very tired and i went off topic. my problem is that i get this message "Forbidden
You don’t have permission to access /nextcloud/index.php on this server. "After updating nc 17 on VPS
this is error log:
[Sun Dec 29 03:03:32.751037 2019] [core:crit] [pid 2655] (13)Permission denied: [client 93.66.198.128:57128] AH00529: /var/www/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that ‘/var/www/’ is executable, referer: http://64.137.164.100/nextcloud/
i’ve tried to change /var/www permission with sudo find /var/www -type f -exec chmod 664 {} \; but nothing change
i’ve also disabled selinux and change httpd.conf (in file section set to Allow from all )
hi @ddinno
Can you try that same command for directories as well? But with chmod 750 {} ;
Also rather than doing that for all websites in your www directory, do it only for nextcloud folder.
So try the following commands
sudo find /var/www/nextcloud/ -type d -exec chmod 750 {} \; sudo find /var/www/nextcloud/ -type f -exec chmod 664 {} \;
In my wordpress instance, I generally go for 644 for files. But 664 works aswell.
Also confirm that the folders are owned by www-data group, else do a chown for the same.
If your data folder is outside of /var/www, then do chown for data folder as well.
i’ve tried on my /var/www/html/nexctcloud but same problem
same error on log:
[Sun Dec 29 12:49:36.752303 2019] [core:crit] [pid 1276] (13)Permission denied: [client 93.66.198.128:59590] AH00529: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that ‘/var/www/html/’ is executable, referer: http://64.137.164.100/nextcloud/