forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: PBas on March 05, 2004, 12:42:08 am

Title: Storing files on different servers
Post by: PBas on March 05, 2004, 12:42:08 am
Is it possible that coppermine uses a diferent server to store the pictures?
I don't how PHP... if there is somebody that can help me... i would aprecciate. :)
Title: Storing files on different servers
Post by: omniscientdeveloper on March 05, 2004, 12:49:43 am
No it's not. Why would you want to do that?
Title: Storing files on different servers
Post by: PBas on March 05, 2004, 12:59:00 am
well... i have online server but only has 128kb bandwidth  :?
my ISP offers me webspace with much faster access but without php / mysql... etc.. etc.

it worth a shot :) thanks anyway
Title: Storing files on different servers
Post by: CopperAngel on March 05, 2004, 11:44:31 pm
Hmmm ... It's an interesting concept for sure. Not sure how it would work, but I /do/ see an advantage/use for it.

For example, I currently have one album that is set up for family pictures. A lot of these are scanned pics and I usually scan at VERY high resolutions. If somehow Coppermine were able to keep the thumbnail and medium sized pics on the main server but have an external link to an off-site server where the high-res version was available it might be a good way for you to keep under your hard disk space quota.

You could host your albums on your ISP's website (those usually give around 50 megs or so) and  link directly to your home box via a dynamic IP service....

but like i said ... no clue how you would get that to work ... got a few ideas, but it'd be too difficult to work. A feature for Coppermine version 6.0 perhaps?  :wink:
Title: Storing files on different servers
Post by: nexxuse on March 07, 2004, 12:11:31 am
Thoughts:


Upload script uploads to server why not post the data to the upload script on server b and tell coppermine to use servername.com/directory/ as image directory instead of /albums/ /userphotos/ etc ?
Title: Storing files on different servers
Post by: Japp on March 07, 2004, 01:13:22 pm
You can use the FTP support in php to make it possible, i don't think it would be to much trouble to get it to work.
Title: change the albums domain
Post by: emrcia on March 07, 2004, 06:35:07 pm
I have bandwith problem and wants to relocate the albums and userpics folder in another domain, in a different server...
I look at the configuration and it has a note saying that it cannot be changed when the gallery has photos in it...
Is there a solution?
thank you

[edit GauGau]
moved your posting to one of the threads that deal with this question. This has been answered often already; next time please search before posting, and read the faq.
[/edit]
Title: Storing files on different servers
Post by: Joachim Müller on March 07, 2004, 08:20:25 pm
since coppermine builds intermediates and thumbs in the same directory where the original pics are stored, it needs write access to the directory. Unless you run both servers (they're yours to administer), you can't have write access on a remote server. That's why your idea is just wishfull thinking.
Of course this could be accomplished (with the original pics on one server and the intermediates and thumbs on another (where coppermine is installed), but this would require enourmous changes in coppermine's core code. Unless you're a php wizard and you know an awfull lot about webserver technology: forget it.

GauGau
Title: Storing files on different servers
Post by: emrcia on March 07, 2004, 10:40:55 pm
Yes, I administer both webspaces and I have write permissions. Maybe it is better for me to move the whole srcipt to that other domain... but I will loose the search engine position obtained... Is there any other solution...

BTW I searched... but used wrong keywords, sorry... :oops:
Title: Storing files on different servers
Post by: Joachim Müller on March 07, 2004, 10:51:04 pm
in your case: move coppermine to the other server and set up a redirector (can be easily done with htaccess) on the old server to transform the requested urls to be redirected to the new server; remember to add a redirector for the search engine spider as well in robots.txt.
Another option: let the dns pointers fetch the old (existing) urls from the new server (cleanest method, without loosing anything).

GauGau
Title: Storing files on different servers
Post by: emrcia on March 08, 2004, 10:59:33 am
I don't understand the second method at all... :( could you explain it a little?
The database should be located in the new domain?
I have the gallery integrated with phpBB... Do I have to change something to have them still integrated?

Thank you for you great help.
 :D
Title: Storing files on different servers
Post by: emrcia on March 08, 2004, 11:53:56 am
what about a .htaccess located with this?:
Code: [Select]
Redirect permanent /userpics http://www.otherdomain.org/userpics?

[added]
I have just asked to my hosting and they suggest a .htaccess with:
Code: [Select]
RedirectMatch "^/galeria/albums/userpics/?$" http://www.otherdomain.org/userpics
What is your opinion?
Title: Storing files on different servers
Post by: Joachim Müller on March 08, 2004, 07:08:53 pm
yes, if you have no way to change the dns pointers (or you simply don't know what the second option means), go for the option you came up with.

GauGau