How to install a new gallery and using some part of an existing gallery? How to install a new gallery and using some part of an existing gallery?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

How to install a new gallery and using some part of an existing gallery?

Started by Indrit, January 14, 2009, 02:56:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Indrit

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

Joachim Müller

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.

Indrit

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

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.

Indrit

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

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.

Indrit

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

phill104

If you do not have a custom anycontent.php then upload a fresh copy from the 1.4.19 download.
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

Doesn't matter, ask suggested in many threads on the upgrade board. Tagging this thread as "solved".