I have a strange problem with nextcloud.
Within admin / files I have hosted my website to synchronize it with my computer. The reason is my web has hundreds of thousands of images and I prefer this synchronization to use ftp.
The problem is next:
If I log in in nextcloud, the aplicattion fix permissions to the folder that contains the data to 770. Then my website not work and show this php error:
(13)Permission denied: [client 220.127.116.11:50023] AH00529: /var/www/vhosts/mywebsite.com/httpdocs/nextcloud-web/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that ‘/var/www/vhosts/mywebsite.com/httpdocs/nextcloud-web/’ is executable, referer: https:/mywebsite.com/
Then to fix the web I modify permissions of that folder to 755, website works perfect, but now nextcloud is down and show this error:
Your data directory is not writable
_Habitualmente, los permisos pueden arreglarse dando al servidor web acceso de escritura al directorio raíz. Véase Introduction — Nextcloud 12 Server Administration Manual 12 documentation
Same error in Windows app.
At the moment so that nextcloud does not drop my web I have the folder unmovable, but I need nextcloud working obviously.
Additionally .htaccess I have it renamed for the web to work look:
If I leave the .htaccess show this error and website shows apache page:
_AH01630: client denied by server configuration: /var/www/vhosts/mywebsite.com/httpdocs/nextcloud-web/admin/files/, referer: mywebsite.com
Why does nextcloud change the permissions of that folder to 770? How do I get my web and nextcloud to work? Is necessary edit .htaccess?
Is a Plesk 17.5 with Centos 7.