You are not logged in.

#1 2014-02-14 04:59:00

rollenwiese
Member
Registered: 2008-02-24
Posts: 69

OwnCloud: data directory as a symbolic link

Hey has anyone gotten this working. Owncloud works fine when the data directory in usr/share/webapps/owncloud is used, but when I change 'data' to a symlink to /mnt/warehouse/share/owncloud/data all I get is a blank screen upon connecting to my server.

Owncloud works fine if I revert the symlink back to a true directory.

Following the instructions here does not work for me: Owncloud Forums

I have /mnt/warehouse/share/owncloud/data in the open_basedir option in php.ini as well as httpd.conf. (In addition to /usr/share/webapps/owncloud and /srv/http/owncloud).
The user/group of /mnt/warehouse/share/owncloud are http:http and permissions are 770.

I must be missing something obvious as I can't seem to find anything out there. Any suggestions?

Thanks,
Greg

Offline

#2 2014-02-14 19:12:22

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: OwnCloud: data directory as a symbolic link

You don't need to use a symlink. Just set the 'datadirectory' config option (in 'config/config.php'). If that doesn't work, some error messages/logs would be helpful.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#3 2014-02-14 21:00:26

rollenwiese
Member
Registered: 2008-02-24
Posts: 69

Re: OwnCloud: data directory as a symbolic link

Thank you, Yeah I have tried doing that. Both from the very beginning when owncloud prompts you to set up an admin account and database server (and data dir), as well as changing it in config.php after the intial set up, as well as replacing the data dir with a symlink to my preferred location. The result is the same, a blank page on server connect.  Whether I have the data directory configured specifically in config.php, or as a symlink, the error message is the same.

I will give it another try, configuring a non-standard data directory from the initial set up, but pretty sure the result will be the same.

I feel like this must somehow be an apache config or php config issue, but I'm not too well versed with either.

I am using the non-aur package, and followed the wiki instructions for setting up the lamp/owncloud.

From /var/log/httpd/error_log, while data is a symlink located in /usr/share/webapps/owncloud:

[Fri Feb 14 15:52:24 2014] [error] [client ::1] PHP Fatal error:  Call to a member function warning() on a non-object in /usr/share/webapps/owncloud/lib/private/log/errorhandler.php on line 51

Offline

#4 2014-02-14 21:04:31

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: OwnCloud: data directory as a symbolic link

While this does not answer your question directly: Every time I am tempted to use symlinks for folders with many files, I end up using bind mounts lately. They rarely fail.

Offline

#5 2014-02-14 21:26:30

rollenwiese
Member
Registered: 2008-02-24
Posts: 69

Re: OwnCloud: data directory as a symbolic link

Thank you Awebb for the tip. Everything works perfectly. Cannot for the life of me figure out why a symlink will not achieve the same. I guess I'll save researching that for later.

Thanks,
Greg

Last edited by rollenwiese (2014-02-15 00:00:03)

Offline

#6 2014-02-28 20:34:24

malevolent
Member
From: Barcelona
Registered: 2011-09-20
Posts: 15
Website

Re: OwnCloud: data directory as a symbolic link

How did you get it work?

If I change the datadirectory to another directory and after apply the permissions I get the blank page as well.

Offline

Board footer

Powered by FluxBB