Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How to install a new gallery and using some part of an existing gallery?  (Read 5536 times)

0 Members and 1 Guest are viewing this topic.

Indrit

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
    • Portali Fierak Online

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to install a new gallery and using some part of an existing gallery?
« Reply #1 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.
Logged

Indrit

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
    • Portali Fierak Online
Re: How to install a new gallery and using some part of an existing gallery?
« Reply #2 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
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: How to install a new gallery and using some part of an existing gallery?
« Reply #3 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Indrit

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
    • Portali Fierak Online
Re: How to install a new gallery and using some part of an existing gallery?
« Reply #4 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
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: How to install a new gallery and using some part of an existing gallery?
« Reply #5 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Indrit

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
    • Portali Fierak Online
Re: How to install a new gallery and using some part of an existing gallery?
« Reply #6 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
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: How to install a new gallery and using some part of an existing gallery?
« Reply #7 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to install a new gallery and using some part of an existing gallery?
« Reply #8 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".
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.