coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: LFox on September 14, 2008, 09:44:13 PM

Title: Gallery URL
Post by: LFox on September 14, 2008, 09:44:13 PM
I want to upload my gallery on two different servers but gallery will use one MySQL base... I don't want to install it again, I just want to do double of a gallery on other server, so... tell me please, what I must write in this field>>> "URL of your coppermine gallery folder"?
Title: Re: Gallery URL
Post by: Joachim Müller on September 15, 2008, 06:59:56 AM
The usage of one mySQL database for two galleries is possible and not related to the URL of the gallery. For that, you will need two different sets of config tables or modify the core code to populate the URL manually (overriding the stuff in the database). Below are the instructions for the later version. However, this will not be the only issue you will have to face: you will have to share the uploaded files (the contents of the "albums"-folder) as well between the two servers, as the files are not being stored inside the database. The database only contains pointers to the uploaded files. Not sure how you're going to handle this.
Back to your question: for one gallery, type in the actual URL of coppermine on that server into the config field (i.e. something like http://your_first_site.tld/the_folder_of_your_first_coppermine_gallery/). For the second gallery, edit include/init.inc.php, find$CONFIG['site_url'] =& $CONFIG['ecards_more_pic_target'];and add before it (into a new line)$CONFIG['ecards_more_pic_target'] = 'http://your_second_site.tld/the_folder_of_your_second_coppermine_gallery/';and edit as you see fit.
Title: Re: Gallery URL
Post by: LFox on September 16, 2008, 03:24:41 PM
It works! Thanks