coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: soldstatic on November 11, 2005, 12:59:09 AM

Title: Remote / External File Storage Compatability
Post by: soldstatic 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
Title: Re: Remote / External File Storage Compatability
Post by: Abbas Ali 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.
Title: Re: Remote / External File Storage Compatability
Post by: Joachim Müller 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!
Title: Re: Remote / External File Storage Compatability
Post by: Abbas Ali on November 11, 2005, 07:52:02 AM
oops missed Windows OS. Not my fault, linux is controlling my mind ;)
Title: Re: Remote / External File Storage Compatability
Post by: soldstatic 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?
Title: Re: Remote / External File Storage Compatability
Post by: soldstatic 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.
Title: Re: Remote / External File Storage Compatability
Post by: soldstatic 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?
Title: Re: Remote / External File Storage Compatability
Post by: soldstatic 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?????
Title: Re: Remote / External File Storage Compatability
Post by: soldstatic 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.