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: Remote / External File Storage Compatability  (Read 4517 times)

0 Members and 1 Guest are viewing this topic.

soldstatic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Remote / External File Storage Compatability
« on: November 11, 2005, 12:59:09 am »

In short: I need coppermine to access files outside of its directory structure.

I love CPG and I currently have 4 websites with it installed. LOVE IT!!!!!

I'm just now trying to play with the different file types (other than jpg).
Basically my problem is that I have 3 HDD on my computer that is my server. Windows OS. Got the webserver running great and CPG installed easily. However, the HDD I have my webserver (and cpg) installed on is small and doesn't have room for any of my div x or mp3 or whatever. Is it possible to batch add files from other locations (other HDDs) than under that file structure???

I need this feature! it would be extremely fantastic. extremely. amazingly.

please help!

thanks in advance, -Andy
« Last Edit: November 12, 2005, 09:13:32 pm by GauGau »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Remote / External File Storage Compatability
« Reply #1 on: November 11, 2005, 07:14:24 am »

Suppose you want your "albums" directory to be at "/home/albums". Your coppermine installation is at "/var/www/html/cpg/".
Then create a symlink "/var/www/html/cpg/albums" which will point to "/home/albums"
i.e. /var/www/html/cpg/albums -> /home/albums

Now you can FTP your files to /home/albums

Make sure that /home/albums is writable by webserver.

I have not tried this but theorotically this should work.
Logged
Chief Geek at Ranium Systems

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Remote / External File Storage Compatability
« Reply #2 on: November 11, 2005, 07:40:33 am »

that's how you'd accomplish this on Lunix. However, soldstatic appears to be running Windows. There's a similar thing to symlinks on Windows, take a look at http://www.pearlmagik.com/winbolic/. Read the caveats extra carefully!
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Remote / External File Storage Compatability
« Reply #3 on: November 11, 2005, 07:52:02 am »

oops missed Windows OS. Not my fault, linux is controlling my mind ;)
Logged
Chief Geek at Ranium Systems

soldstatic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Remote / External File Storage Compatability
« Reply #4 on: November 11, 2005, 10:23:16 pm »

lol ya linux can do that i hear.

anyway, i'll check into that link in a few minutes.

My buddy was telling me that microsoft actually came out with a patch or something that resembled symlinks... anyone know of an actual microsoft version of the symlink feature?
Logged

soldstatic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Remote / External File Storage Compatability
« Reply #5 on: November 12, 2005, 01:07:14 am »

ok well i got winbolic, and i created a folder "link" under cpg albums, and i then created shell links within that...

not working... any ideas? I guess I'll try a "junction" whatever that is... gotta do some reading first but i'll use that next. I'll keep you posted.
Logged

soldstatic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Remote / External File Storage Compatability
« Reply #6 on: November 12, 2005, 01:13:53 am »

ok well, neither of those worked, tried both kinds. is it something with apache? how does apache see those folders and what not?
Logged

soldstatic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Remote / External File Storage Compatability
« Reply #7 on: November 12, 2005, 01:26:13 am »

ok this is odd...

all this research on symlinks and the like, well I created a "junction" which is supposedly pretty much invisible to all windows apps (almost all of them).

well wait first:
i did some moving of files around and moved my server to another harddrive (the one with the movies on it) and i actually had put a bunch of the movies in a subfolder of Albums after the move. copied them there. then I copied other movies to the rest of the HDD (not using junction and not putting in the same folder). then I created a junction to the other movies.

well CPG is working perfectly with the ones I had initially put in the subfolder of Albums, but I actually MOVED them with windows to another directory, so i have NO IDEA why thats working?!??!????

and it doesn't see the other subfolders in albums (and therefore sees nothing else).

Now, unless it sees the junction for the first folder and not the junctions to the other folders well i have no idea whats going on....!?!?!/??

any thoughts?????
Logged

soldstatic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Remote / External File Storage Compatability
« Reply #8 on: November 12, 2005, 06:42:40 pm »

allrighty, got it workin. last night I turned off my computer with the server on it, and this morning booted it to play around some more. It seems the reboot may have solidified the winbolic change i made.

anyway for future reference and for those trying to do the same thing:

i'm using winbolic on win xp. (I'm using a JUNCTION not shell link). works perfectly.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.