Changing default album location / storage location

sbose

Joined: 2009-10-02
Posts: 2
Posted: Fri, 2009-10-02 12:15

I just installed gallery3 beta release, installation went fine, so far it looka like a lot of hard work went into it.

I just ahve one request/ question.

1. how to change the album / storage location from /var directory to another directory of my choice.

I went through the faq and it suggests modifying the config file. but looking into the config file I did not find such line (maybe it was written for gallery2)

any help would be greately appreciated.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-10-02 22:54

You're not reading the FAQ for G3 then.

FAQ: Are my photos secure? They're right there on my website!

Right now it's not configurable. You might be able to get away with changing the VARPATH variable in index.php, but I think it'll still need to be web-accessible.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
rengeek

Joined: 2003-06-17
Posts: 2
Posted: Thu, 2010-10-14 02:37

Any luck with this? I have G3 running off a 30gb drive and I need to use a 2 TB external to store the thousands of RAW photos I want to access. I hate to go back to G2 just for this.

Quote:
Posted: Fri, 2009-10-02 04:15

I just installed gallery3 beta release, installation went fine, so far it looka like a lot of hard work went into it.

I just ahve one request/ question.

1. how to change the album / storage location from /var directory to another directory of my choice.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2010-10-14 02:42

Use a symlink
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
rengeek

Joined: 2003-06-17
Posts: 2
Posted: Thu, 2010-10-14 03:17

Sorry, not enough info to go on. I'm a photo guy and not much good on linux. I researched what a symlink was and got an example to work but not sure how this should be implemented (or where)in gallery3.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2010-10-23 16:37

Here's what I'd try. Move your gallery3/var directory to your storage drive. Then create a symlink from gallery3 to that new location.

From the command line go to your gallery3 directory then enter something like (the exact command may vary on your platform, this works on FreeBSD)
ln -s /path/to/where/you/put/var var

This should create something that looks like:
var -> /path/to/where/you/put/var

when you are in your gallery3 directory and enter ls -al
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here