Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Moving Album/User Pictures Directory outside Install dir  (Read 4882 times)

0 Members and 1 Guest are viewing this topic.

wooster

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Moving Album/User Pictures Directory outside Install dir
« on: October 26, 2003, 01:35:51 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Moving Album/User Pictures Directory outside Install dir
« Reply #1 on: October 26, 2003, 11:07:20 am »

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
Logged

wooster

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Will try that ...
« Reply #2 on: October 26, 2003, 09:48:12 pm »

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

chlee

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
    • Medical Media DataBank
Moving Album/User Pictures Directory outside Install dir
« Reply #3 on: October 30, 2003, 03:29:38 pm »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Moving Album/User Pictures Directory outside Install dir
« Reply #4 on: October 30, 2003, 06:47:08 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.