Different filestore location

362 views
Skip to first unread message

DJ Molicious

unread,
Jan 25, 2011, 4:46:29 PM1/25/11
to resour...@googlegroups.com
So from the reading i've done, it is not advised just to change the path of the filestore location in config.php?
I have a Drobo that i'm using as storage space for RS. RS is installed on the boot drive of the server and i just want all of the resources to be uploaded onto the Drobo rather than the original location of the filestore folder on the boot drive. Do i really have to create a symlink for the filestore folder or can i just change the path of the filestore folder in config.php.

Many Thanks!

M.

Paul Manno

unread,
Jan 25, 2011, 5:00:25 PM1/25/11
to resour...@googlegroups.com
You can change it, but you will probably have many permissions
problems in accessing the volume. Symlink is the easiest method.

> --
> You received this message because you are subscribed to the Google Groups
> "ResourceSpace" group.
> To post to this group, send email to resour...@googlegroups.com.
> To unsubscribe from this group, send email to
> resourcespac...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/resourcespace?hl=en.
>

DJ Molicious

unread,
Jan 25, 2011, 5:05:08 PM1/25/11
to resour...@googlegroups.com
So basically the actual real folder should be on the Drobo and a symlink for it should be placed inside of the RS installation directory, right?

Tanks,

M.

Paul Manno

unread,
Jan 25, 2011, 5:32:53 PM1/25/11
to resour...@googlegroups.com
Yes. I'm guessing you're connecting the drobo via USB, so it will be
somewhere like:

/media/drobo

Then you just create a symlink in the root RS directory:

ln -s /media/drobo filestore

Then you may need to do:

chown -h www-data:www-data filestore

To change the owner of the link to www-data (if ubuntu, or apache if
centos/rhel).

and:

chown -R www-data:www-data filestore

to make www-data the owner of all subdirs of filestore.

DJ Molicious

unread,
Jan 25, 2011, 6:04:28 PM1/25/11
to resour...@googlegroups.com
Ok, I did create the symlink, moved it to the root of the RS folder but when i try to change the owner of the link it keeps on telling me:

chown: www-data: invalid argument

Do you know how i can go about correcting this? I'm on Mac OS X 10.5.8 using the terminal to achieve this.

Many Thanks,

M.

Paul Manno

unread,
Jan 25, 2011, 6:27:00 PM1/25/11
to resour...@googlegroups.com
Ah. I don't know who the web server runs as on Mac OS X. On Ubuntu,
it's www-data, on CentOS or RedHat it's apache. Are you running
apache as your web server? Try using apache instead of www-data and
see if it works out (unless you know what user is running your web
server).

Søren Grønning Iversen

unread,
Jan 26, 2011, 2:09:20 AM1/26/11
to resour...@googlegroups.com
Try changing ownership of the actual directory symlinked to the filestore location. This should work. Had it been a hardlink, ownership changes would reflect equally, no matter at what 'end' you made the change, but symlinks points from the symlinked location to the destination and as such is separated from the file or folder it is pointing at.

DJ Molicious

unread,
Jan 26, 2011, 10:03:04 AM1/26/11
to resour...@googlegroups.com
Yes, on Mac OS X, It's Apache. I'll give that a try.

Thanks!



2011/1/26 Søren Grønning Iversen <s.gro...@gmail.com>

Tom Gleason

unread,
Jan 26, 2011, 11:17:25 AM1/26/11
to resour...@googlegroups.com
something like
ps aux | grep apache

or

ps aux | grep httpd 

should help you discover the apache user
Tom Gleason, PHP Developer

Exploring ResourceSpace at:
http://resourcespace.blogspot.com

ResourceSpace Support Services
https://www.buildadam.com/muse2

DJ Molicious

unread,
Jan 26, 2011, 11:32:37 AM1/26/11
to resour...@googlegroups.com
Should it be more straight forward to just make the filestore directory available to anyone by doing a chmod 777 to it?

Thanks,

M.

DJ Molicious

unread,
Jan 26, 2011, 11:34:14 AM1/26/11
to resour...@googlegroups.com
It's pretty much what the install instructions says on the wiki page:
mkdir filestore
chmod 777 filestore 
chmod -R 777 include
Thanks,
M.

Tom Gleason

unread,
Jan 26, 2011, 11:35:54 AM1/26/11
to resour...@googlegroups.com
that should work.
Reply all
Reply to author
Forward
0 new messages