Hi there,
I'm using owncloud for a while and I'm very happy, it does what I expect it to do.
Now I'm presented with a problem, the storage is full. I bought a new HD, added it in the computer and did a search on how to move owncloud to the new disk. I followed this guide:
https://forum.owncloud.org/viewtopic.php?t=7118
After doing exactly that, owncloud can't connect to my data dir and owncloud is complaining:
Quote:
Cannot create "data" directory (/media/neoscores/files/owncloud/ocdata)
This can usually be fixed by giving the webserver write access to the root directory.
|
I'm on an Ubuntu 14.04, ownCloud 8.1.1, PHP version 5.5.9-1.
The owner of /media/neoscores/files/owncloud is 'www-data:www-data' (recursive) and is not the mount point ('files' is the mount point). Permissions of /media/neoscores/files/owncloud are 770 (recursive).
Output of
Code:
echo
"User: " . exec('whoami');
echo "Group: " . exec('groups');
is 'www-data'.
I'm stuck, no clue on what's going on. It has something to do with my linux, because I can't:
Code:
sudo -u www-data mkdir /media/neoscores/files/owncloud/testDir
But I can cd my way to '/media/neoscores/files/' and
Code:
sudo -u www-data mkdir owncloud/testDir
without problems...
Ow yes, SELinux is disabled.
In PHP open_basedir isn't set, so Apache should be able to reach that directory.
Is there anybody who can point out what's going wrong?
Thanks!