Moving Album/User Pictures Directory outside Install dir Moving Album/User Pictures Directory outside Install dir
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Moving Album/User Pictures Directory outside Install dir

Started by wooster, October 26, 2003, 02:35:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wooster

I have got CPG 1.2 running and works just great, just one request, Would it be possible to have the directory where the photos are stored to outside the install dirctory.

I had gallery  web script set up like this and for upgrades I would just delete the whole install directory point the new install to the pictures dir and would be all set

Joachim Müller

without testing or looking into the code further: backup your database and then try to change "The album directory" in config. Put some "../" in front of it...
Please report if this works for you.

GauGau

wooster

Will try and then get back to you on this...thanks once again for the suggestion.

chlee

I put the album outside the coppermine directory. Following is what I did:
1. You need the logo.php and imageinfo.php which was discussed in previous thread http://forum.coppermine-gallery.net/index.php?topic=77&highlight=watermark
2. Configure your coppermine to Use GD for image resizing.
3. Now you can configure the album path using the absolute path, somthing like "/usr/local/www/album" or "E:/www/album" (the route where you put your album folder)
4. If you want to enable ImageMagick, you will need to modify your displayimage.php

Joachim Müller

logo.php and imageinfo.php are only needed if you want to run watermark hack (not recommended because it's consuming large amounts of resources).

GauGau