Duplicating & Isolating a Current Gallery Duplicating & Isolating a Current Gallery
 

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]

Main Menu

Duplicating & Isolating a Current Gallery

Started by christophg, November 01, 2011, 04:39:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

christophg

Hello...

I've searched for this topic, but no results have come up. I hope this is the best category.
I have a current Joomla 1.6 installation in my Website and have duplicated the website, in order to create a "development" site. The duplicate website is in a new subdomain.

Coppermine is standalone and not bridged. I hae successfully duplicated Coppermine into the new subdomain, but can't figure out how to isolate the duplicate from the original. I went into the configuration and changed the path name, but this did not help.

When I enter an image into the duplicate site, the image does not show up in the original, but a place holder does. When I enter an image into the original site, the same thing happens in the duplicate. What configuration file needs to be changed in the duplicate, so that it is isolated from the original. I need the original and duplicate to be independent from each each, each having their own images, user and admin databases and passwords accordingly. I do not want to make a new installation.

Any help will be appreciated.
Thanks...Christoph

lurkalot

I'm assuming both are using the same database? that's why you're getting the place holders in your original install.   

Create a new database in your cPanel, then export your database tables from your original database using phpmyadmin, and import them into the new database.

Then in your root folder of your duplicate install,  go to include > config.inc.php file and change the details so it points to your new database.
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

christophg

Hello...

Thanks for your immediate response, it is greatly appreciated.
Yes, the Coppermine created is a duplicate of the original, files and database.
I'm also new to cPanel and WHM (real New). Would it not be easier for me to figure out how to change the details in the duplicate Coppermine, residiing in the new Subdomain...?

Here is what I found in the config file:

<?php
// Coppermine configuration file
// MySQL configuration
$CONFIG['dbserver'] =                         'localhost';        // Your database server [I would leave this alone]
$CONFIG['dbuser'] =                         'gropax_copp1';        // Your mysql username [I would change this to gropak_copp1]
$CONFIG['dbpass'] =                         'XXXXXX';                // Your mysql password [I would change this]
$CONFIG['dbname'] =                         'gropax_copp1';        // Your mysql database name [I would change this to gropax_copp1]

// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'copp_'; [I would NOT change this

Thanks again for your help.

?>

Αndré

Adjust the values in include/config.inc.php to match your new database setup. You might also want to read http://documentation.coppermine-gallery.net/en/export.htm#moving

christophg

Hello Andre...

Thank you much for your immediate reply and direction to the documentation. It's an excellent composition, and clear enough for me to understand. Instead of creating a new database and importing the original, I simply changed the pointers on the duplicated site in the subdomain, per my follow up question and your suggestion. Everything went very successfully.

On another note, will coppermine ever have a plug-in to integrate into Joomla!?
Thanks for your help...!

Αndré

Quote from: christophg on November 05, 2011, 06:06:28 PM
Instead of creating a new database and importing the original, I simply changed the pointers on the duplicated site in the subdomain, per my follow up question and your suggestion. Everything went very successfully.
Please
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.



Quote from: christophg on November 05, 2011, 06:06:28 PM
On another note, will coppermine ever have a plug-in to integrate into Joomla!?
Quote from: Joachim Müller on September 28, 2008, 10:28:42 AM
10. One question per thread
We have a strict "One question/issue per thread rule", which helps both supporters/moderators to keep track of open/closed issues as well as users who search the board or browse it, looking for answers to their question.
Quote from: Joachim Müller on September 28, 2008, 10:22:18 AM
3. Search the board
The search facility on the forums is probably your best friend when having a problem, there is a good chance that someone else has had the problem you are having and that a solution has been posted before, so to try and get an answer straight away use this tool. If at first you don't seem to find what you are looking for try again with different words.
You'll find some bridge contributions here.

christophg

Thanks for your guidance...I'll check the "Solved."
Ah, I fully understand the benefit for one question per thread.
Your direction for the bridge is appreciated and will be followed...
Thanks again for all your help...
Christoph