Album directory outside web-root

Hello,

I am installing ZP on an intranet to organize photos. I already have ~15k photos that I don't want to have to copy into the directory for zenphoto again (the drive doesn't have the space). The photos are available on the same machine, although through a different disk. I have tried editing zp-config.php as follows but I just get the error "albums directory (/Volumes/Disk1/Photos/) could not be found":

$conf['album_folder'] = '/Volumes/Disk1/Photos'
$conf['album_folder_class'] = 'external'

Any help is appreciated. ZP is running off of a 10.5.8 Server on intel xserve.

If it isn't possible to change the albums directory, is it possible to add a sym-link to the zenphoto/albums folder so that images are still archived in their proper place? Thanks

Comments

  • Nevermind. I did it through softlinks and it does what I want. The create/upload album allows me to create a folder on the external drive via the symlink so I don't have media in two places.

    Just in case anybody is interested, I undid my changes to the zp-config.php file and issued

    ln -s /Volume/Disk1/Photos/Album1/ .../zenphoto/albums/Album1

    for every album that you have/want to create. Should make it easy to symlink them so that sub-albums can be in more than one album without having to recopy the images.
  • Actually now after playing around for a while I realize that I cannot see the images full size when they are clicked on in an album. Any fix?
  • For a browser to show an image it must be able to access it. So I guess something is still missing from your implementation. You can also try one of the protected image options.
  • Actually I changed the theme and it works now so I think it had something to do with that theme? I also made the images 'Unprotected' under the admin options, but in the Example Template it just opened a blank browser.
Sign In or Register to comment.