Data Directory Error - Permissions Issue

9.1.x
help

#1

I have been trying to make owncloud work on our server since we upgraded servers. Originally it gave an 500 Error after the server upgrade, so I thought it might be due to the older 7.0 log. So I upgraded to the latest 9.1 version of CE, and now I can't seem to get past the setup screen. No matter what folder it goes into, or permissions set for the folder, it comes back with an error message setting up. The most recent error message is:
Data directory (/home/________/publichtml/cloud/data) not writable by ownCloud - Permissions can usually be fixed by giving the webserver write access to the root directory.

Steps to reproduce
1. upload owncloud to directory
2. input correct server data with user name
3. owncloud installer asks to change permissions to 750 and returns: Data directory (/home/________/publichtml/cloud/data) not writable by ownCloud - Permissions can usually be fixed by giving the webserver write access to the root directory.

Expected behaviour
What should happen is owncloud should create the owncloud infrastructure and allow users to login.

Actual behaviour
No matter what permissions are given to this, the new owncloud server will not go past the setup screen.

Server configuration
Operating system: Linux
Web server: Apache 2.4.23
Database: MySQL 5.6.31
PHP version: 5.5.38
ownCloud version (see ownCloud admin page): 9.1
Updated from an older ownCloud or fresh install: 7.0
ownCloud log (data/owncloud.log, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808): Full log here: https://www.dropbox.com/s/b1j6z8ywch2t4tk/owncloud_log.txt?dl=0

Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):

Integrity status for oC9+

Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
Data directory (/home/_____/public_html/cloud/data) not writable by ownCloud
Permissions can usually be fixed by giving the webserver write access to the root directory.

#2

Hi,

there is a FAQ available here explaining all reasons for this datadir permission issue: