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: Change Upload Directory  (Read 3713 times)

0 Members and 1 Guest are viewing this topic.

adamson67

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Change Upload Directory
« on: November 23, 2007, 09:40:47 pm »

Hi,
  Can someone point me to the post or new directions to change the upload directory? I have a webserver with a raid array and would like the upload directory to point to the albums directory on the array outside of the Coppermine source directory.

IE.
from albums/

to raid/pictures/albums/
« Last Edit: November 23, 2007, 11:22:48 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Change Upload Directory
« Reply #1 on: November 23, 2007, 09:58:38 pm »

You could enter a relative path in config if the array is accessible via the web or use a symlink if it isn't.
Logged

adamson67

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Change Upload Directory
« Reply #2 on: November 23, 2007, 10:24:37 pm »

Thanks Nibbler

When I tried the symblink I get the following when doing a batch upload
/raid0/data/www/coppermine/raid0/data/media/pictures/albums/

where I expected to see just: /raid0/data/media/pictures/albums/

Not sure where I can get rid of: /raid0/data/www/coppermine/
Logged

Nibbler

  • Guest
Re: Change Upload Directory
« Reply #3 on: November 23, 2007, 10:32:31 pm »

Make sure you enter the path correctly. What you want to do is move any existing pictures to the raid array, then remove the albums directory and replace it with the symlink.

rm -rf albums
ln -s /raid0/data/media/pictures/albums albums
Logged

adamson67

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Change Upload Directory
« Reply #4 on: November 23, 2007, 10:48:51 pm »

Nibbler,
That helped! I think I'm on the right path now. Would be cool if it was done via the config interface, but this will do.

Thanks again!
Logged

Nibbler

  • Guest
Re: Change Upload Directory
« Reply #5 on: November 23, 2007, 11:22:37 pm »

Great. Unfortunately more people would screw up their gallery than would be helped by such an option.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.