changing directory where albums are stored

b4n4n

Joined: 2002-08-25
Posts: 3
Posted: Sun, 2002-08-25 22:47

Hi,

i would like to change the directory where albums are stored. I would like to movie it from /var/www/albums to /home/gallery/albums because my /var partition seems to be too small to run gallery.
I've tried it with a simple cp commad for the whole albums directory, and then set up all the permissions. After it, the gallery worked well, but one of my users would like to rename one of his albums. He did it and the pictures of this renamed album was disappeared. I don't know what's wrong, but there can be an easier way to do this, i don't know.

Please let me know how should i do it?

B4n4n

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Mon, 2002-08-26 01:31

Did you remember to update the path variables in config.php ?

 
b4n4n

Joined: 2002-08-25
Posts: 3
Posted: Mon, 2002-08-26 07:48
Quote:
Did you remember to update the path variables in config.php ?

Of course, i changed the albums directory variables to /home/gallery/albums , i found only this one.

 
Kommercial
Kommercial's picture

Joined: 2002-08-19
Posts: 38
Posted: Mon, 2002-08-26 19:32

Your upload image directory is called upon 3 times in the config

line 50: $gallery->app->albumDir
line 53: $gallery->app->albumDirURL
line 63: $gallery->app->userDir

Need to change all of these.

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Mon, 2002-08-26 19:59

Hmm, okay, I forgot about this before, but it sounds like your webserver
cannot access the directory you've moved gallery too. Gallery will not
work properly if the albums tree is outside the webserver's jurisdiction.

So, you may need to reconfigure your webserver so that the new location
is accessible via the webserver. Gallery 2 is changing this, but for Gallery 1
there is no escape. If you use apache, you can probably just create a new
alias/directory declaration and point it where you need to.