Problem changing datadirectory

Ask all your questions regarding OC 8.2 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
Tester_owncloud2
Newbie
Posts: 2
Joined: Fri Feb 12, 2016 12:55 pm

Problem changing datadirectory

Postby Tester_owncloud2 » Fri Feb 12, 2016 1:58 pm

I have the following problem:

I've installed apache2, owncloud and so on my raspberry pi but on the screen http://<IP>/owncloud/ where I create the admin user for first time I cannot select /media/pi/Nube/ as data directory, I was only capable of choosing /var/www/html/owncloud/data/

This is the way how /media/pi/Nube/ is mounted
/dev/sda7 on /media/pi/Nube type ext3 (rw,nosuid,nodev,relatime,errors=remount-ro,data=ordered,uhelper=udisks2)

And those are the permissions of /media/pi/Nube/
drwxrwxrwx 2 www-data www-data 4096 Feb 12 10:30 /media/pi/Nube

I've checked that users even different from www-data can write files inside the folder, for example I tried "touch test" for the user called pi

I've also tried to accept what it proposes and make my data directory in /var/www/html/owncloud/data and then I've changed config.php and the field datadirectory as /media/pi/Nube I also copied with the same permissions the folder called data to /media/pi/Nube, but the problem still perssits.

Some help, please? could it has to do with the apache configuration which maybe doesn't allow me access/modify directories over /var/www/html/?

Thanks in advance

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Problem changing datadirectory

Postby RealRancor » Fri Feb 12, 2016 2:14 pm

*gone*

User avatar
cdamken
Helpful Elf
Posts: 165
Joined: Mon Aug 03, 2015 10:20 am
ownCloud version: 8.2.2
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.9
Location: Germany
Contact:

Re: Problem changing datadirectory

Postby cdamken » Tue May 31, 2016 3:41 pm

my personal recommendation (an easier way instead modifying whole oc_filecahe in the database)

instead moving the data folder, create a symbolic link pointing to the same direction from your new storage point to the original data folder should be.


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 8.2”

Who is online

Users browsing this forum: No registered users and 2 guests