coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: Indrit on January 14, 2009, 02:56:15 AM

Title: How to install a new gallery and using some part of an existing gallery?
Post by: Indrit on January 14, 2009, 02:56:15 AM
Hello,
I want to do the following:

1.   Install a brand new gallery to a designated sub domain. A fresh gallery
2.   I want to grab all the photos, albums, categories, users, comments from my old gallery to the new one.

NOTE: remember both galleries are hosted in the same domain

Now here is the beauty: - Can someone help me with the detailed steps how to do that.

Best regards,
Indrit
Title: Re: How to install a new gallery and using some part of an existing gallery?
Post by: Joachim Müller on January 14, 2009, 08:21:11 AM
Then don't perform a fresh install. Instead, create a database dump and copy all files from your existing gallery. Then save the files into the new location. Edit the database dump file and batch-replace the table prefixes to make sure that there will be no naming collission. Finally restore the database dump, which will create the needed tables.
Title: Re: How to install a new gallery and using some part of an existing gallery?
Post by: Indrit on January 14, 2009, 08:52:09 PM
I kind of thought of this but than the OLD gallery is an earlier version of copermine and has a few problems. I cannot be able to change anything in the Config admin panel. This is the reason I want to install a fresh latest version gallery and than just grab only the tables I need to grab from my existing one.

Regards,
Indrit
Title: Re: How to install a new gallery and using some part of an existing gallery?
Post by: phill104 on January 14, 2009, 08:55:32 PM
That is what you are doing by upgrading, you are only keeping the tables, the albums folder, the config.inc.php file and possibly a custom anycontent.php and theme. All of the rest of the files are replaced.
Title: Re: How to install a new gallery and using some part of an existing gallery?
Post by: Indrit on January 16, 2009, 08:39:12 AM
Hello,

I really and desperately need Help in here.

here is what I did.

1. I installed a new gallery in a new host
2. I backed up as a zip file the whole gallery form the old server.
3. I saved a copy of the database from the old server.


All I want to bring to the new gallery are:
  1. Categories
  2. Albums
  3. Images

That is all

Can someone please please help. I am trying to read the recommendation and they look too confusing for me. I have over 2000 images in my old gallery and I cannot start all over


Best regards,
Indrit
Title: Re: How to install a new gallery and using some part of an existing gallery?
Post by: phill104 on January 16, 2009, 09:16:51 AM
Copy your old albums folder and include/config.inc.php file into your new gallery directory overwriting the files it contains. If you had a custom theme or custom anycontent.php file, copy that too. Check permissions as per the docs.

Upload your old database. Check the details in include/config.inc.php are correct for your new host.

Run update.php

That should be it.
Title: Re: How to install a new gallery and using some part of an existing gallery?
Post by: Indrit on January 16, 2009, 09:21:59 AM
Excellent!

I did do all the steps and I think I saw good results. Now the gallery has been upgraded to the latest version. However when checking the version I thought it will be great to bring here a piece of what I saw:  Please see attachment.

Do you think is there anything else I should do?

Best regards,
Indrit
Title: Re: How to install a new gallery and using some part of an existing gallery?
Post by: phill104 on January 16, 2009, 10:37:49 AM
If you do not have a custom anycontent.php then upload a fresh copy from the 1.4.19 download.
Title: Re: How to install a new gallery and using some part of an existing gallery?
Post by: Joachim Müller on January 19, 2009, 09:12:58 AM
Doesn't matter, ask suggested in many threads on the upgrade board. Tagging this thread as "solved".