I am trying to fix an OwnCloud sever. I am stuck since a day, and I am starting to despair. Owncloud (set up on arch linux) says:
Data directory ( /data/ocdata) is invalid
Please check that the data directory contains a file ".ocdata" in its root.
Cannot create "data" directory ( /data/ocdata)
This can usually be fixed by giving the webserver write access to the root directory.
So I did the following (out of desperation):
sudo chown -R 777 /data/ocdata
an ls on ocdata gives:
ls /data/ocdata -a -l
total 12
drwxrwxrwx 2 http http 4096 Sep 14 20:33 .
drwxr-xr-x 4 root root 4096 Sep 14 20:18 ..
-rwxrwxrwx 1 http http 2 Sep 14 20:40 .ocdata
The config.php says:
<?php
$CONFIG = array (
'instanceid' => 'ocac7c1e1b0a',
'passwordsalt' => 'f30d85305490ef50994a3231be3017',
'trusted_domains' =>
array (
0 => '10.10.10.5',
),
'datadirectory' => ' /data/ocdata',
'dbtype' => 'pgsql',
'version' => '7.0.2.1',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => '---',
'dbpassword' => '---',
'installed' => true,
);`
what might be wrong here?