Best Way to Migrate from Gallery 1 to 3?

nutsnbolts

Joined: 2004-12-15
Posts: 71
Posted: Tue, 2011-04-05 23:08

Ok, here we are. I'm curious how or what is the best way to go about this.

Essentially, I'm moving to a new host as well and would like to see what is the best approach in accomplishing this?

Can someone suggest what I should do first or ...?

Please help!
----
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.4 cgi
Webserver = Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Database = mysqlt

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2011-04-05 23:33

PHP 4.x and Apache 1.x isn't going to cut it, so I hope that's old information. First double check that your system meets G3's requirements:
http://codex.gallery2.org/Gallery3:User_guide:Gallery3:Installing_and_upgrading#Before_you_start_.2F_System_requirements

Second, the only migration path from G1 to G3 right now is to go from G1 to G2 to G3

G1 to G2, using G2's migration (be sure to follow the instructions exactly)
FAQ: Can I update from G1 -> G2?

G2 to G3, using the G2 import module in G3:
http://codex.gallery2.org/Gallery3:Modules:g2_import

I don't know if everything up the path is supported and you may very well loose the same URL's to images, though you might be able to piggy-back the rewrite rules, I'm not sure though. Someone has expressed interest in making a direct G1 to G3 import module, but I haven't seen any work on that yet.
____________________________________________
Like Gallery? Like the support? Donate now!

 
nutsnbolts

Joined: 2004-12-15
Posts: 71
Posted: Wed, 2011-04-06 04:21

Good to know! As long as there is an upgrade path.

I'm assuming that I should upgrade the old site first to G3 and then perform a migration of G3 to the new host.

The new host has G3 already installed and it's one of the new host's modules that I can automatically install as part of their modules available package.

----
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.4 cgi
Webserver = Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Database = mysqlt

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2011-04-06 04:28

To "upgrade" from an old version of Gallery to G3, G3 must be installed on the same server and have file system access to the old Gallery install.
____________________________________________
Like Gallery? Like the support? Donate now!

 
nutsnbolts

Joined: 2004-12-15
Posts: 71
Posted: Wed, 2011-04-06 05:04

How about G2? I'm assuming G2 will have to be installed as well first then install G3 all on the same server to upgrade G1.

Right?

----
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.4 cgi
Webserver = Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Database = mysqlt

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2011-04-06 05:05

Yes, but you could move G1 to the new server, then migrate to G2, then to G3. See the links I posted above for the steps necessary in migrating from one version to the next.
____________________________________________
Like Gallery? Like the support? Donate now!

 
nutsnbolts

Joined: 2004-12-15
Posts: 71
Posted: Wed, 2011-04-06 14:11

OMG don't ask me what I was thinking. You're right I can move Gallery 1 to the new host first then do all the upgrades there.

Do we have a link on the "how-to" moving a gallery 1 from one host to another? Specifically for Gallery 1? I'm not sure about the fundamental differences in different Gallery Versions in moving files and databases.

I'm assuming I have to install Gallery 1 on the new host first before moving the "back up" files.

----
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.4 cgi
Webserver = Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Database = mysqlt

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2011-04-06 15:33

Either install G1 or just copy the "albums" directory after following all of the steps here:
FAQ: Can I update from G1 -> G2?

IIRC, G2 only reads through the G1 "albums" directory and the .dat files to get information and copy the images into G2.
____________________________________________
Like Gallery? Like the support? Donate now!

 
kevdav

Joined: 2011-05-06
Posts: 1
Posted: Fri, 2011-05-06 16:17

Don't want to hijack thread, but I also have some general migration questions regarding this perfectly titled topic.

We are currently using G1 and I've been tasked to see what it would take to use G3 instead (or in parallel if importing G1 images would be too laborious). What we have currently is a production version of G1 and a development setup of G3 on a different server. I didn't do the installations myself.

1) Can the two versions coexist on the same server? (Does G3 install destroy/overwrite G1 files?)

2) Do I understand above correctly, that for G1 and G3 installations on separate servers (prod and dev), I need to copy prod G1 to the dev server, install (or upgrade to) G2 on that dev server, and then run G3's import module to get images from G2?

3) We have many links to G1 images from our intranet. Are these URLs maintained thru the upgrade(s) to G2/G3? If not, is there a process for correcting such links? If not, what would be the downside to running G1 and G3 as separate installs and have all new images go into G3 and users can continue to use older G1 images/URLs and copy/move G1 images into G3 manually as needed?

Thanks for any info that can be provided.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2011-05-06 17:07

First, you can't import directly from G1 to G3. If you want to retain comments, view counts, descriptions, summaries, keywords, etc, you'll need to migrate from G1 to G2 then to G3.

Quote:
1) Can the two versions coexist on the same server? (Does G3 install destroy/overwrite G1 files?)

They'll have to co-exist on the same server for the migration process. First going from G1 to G2 then G3 :)

Quote:
2) Do I understand above correctly, that for G1 and G3 installations on separate servers (prod and dev), I need to copy prod G1 to the dev server, install (or upgrade to) G2 on that dev server, and then run G3's import module to get images from G2?

Yes

Quote:
3) We have many links to G1 images from our intranet. Are these URLs maintained thru the upgrade(s) to G2/G3?

I'm not 100% sure. I haven't done a G1 > G2 > G3 migration. You may need to create some custom rewrite rules to handle this. Someone may have already posts some ideas or rules in another thread too.

Quote:
If not, what would be the downside to running G1 and G3 as separate installs and have all new images go into G3 and users can continue to use older G1 images/URLs and copy/move G1 images into G3 manually as needed?

The only downside to that I see is time and resources.
____________________________________________
Like Gallery? Like the support? Donate now!

 
the0ne
the0ne's picture

Joined: 2011-05-02
Posts: 83
Posted: Thu, 2011-05-19 06:31

there is a new migration path from G1 to G3 now: direct, without using G2
http://gallery.menalto.com/node/102190

you can migrate from G1 to G3 simply by using the G1 import module in G3:
http://codex.gallery2.org/Gallery3:Modules:g1_import

 
oyvine
oyvine's picture

Joined: 2011-09-30
Posts: 1
Posted: Fri, 2011-09-30 22:14

Hi,
I am about to migrate my G1 installation from a really old/slow computer to a brand new one running G3. Do I have to install G1 on the new computer or can I simply copy the gallery over and point the g1_import module to the copied folder?

best regards,
Øyvin Eikeland

 
chriswpl09

Joined: 2011-11-02
Posts: 1
Posted: Wed, 2011-11-02 11:34

I am having a problem with my migration.. can anyone help here

 
the0ne
the0ne's picture

Joined: 2011-05-02
Posts: 83
Posted: Wed, 2011-11-02 16:09

hi!

for questions concerning g1_import please use the corresponding thread:
http://gallery.menalto.com/node/102190

@oyvine: yes, you may simply copy the albums folder (to the new system) and (on the new system) run the g1_import module in g3.
@chriswpl09: probably nobody can help you if you don't give out detailed information.

br,
the0ne

 
Matt23

Joined: 2011-11-29
Posts: 5
Posted: Tue, 2011-11-29 16:35

I wouldn't mind just having a way to dump the album display order from the album.dat (?) files in gallery1. Then I could use the same raw pictures and put them in the original order. i don't have a lot of website comments or urls that I worry about. Unfortunately the g1_import module doesn't even begin to work for me. I posted to the thread Thomas suggested.

edit: serious PEBKAC issues... SELinux was interfering with the start of the process and then I had to make sure I copied -all- the original albums folder material into place for conversion, instead of just trying to do a few at a time. also you need to edit your G1 albums.php file and update the paths to the albums folder if it's not the same as it was in the original G1 installation.

Thanks to the0ne's module I have moved ~900 photos from a G1 installation to a G3 and it went pretty well (once I figured out the errors in my process :-) )

 
tjcomer

Joined: 2012-01-18
Posts: 1
Posted: Wed, 2012-01-18 18:25

Hi all - the info in this thread looks helpful and makes me hopeful.

I have inherited a site that has Gallery 1, and it has been integrated with Joomla. There are lots of albums and photos involved. (The original webmaster disappeared or died or went to jail as I understand it...noone can locate him.)

The site is badly coded....I am completely redoing and NOT using Joomla. I have not touched the gallery stuff yet. The Gallery product looks great - I have not used it before. I will keep using it in the new site. BUT I hope to upgrade Gallery 1 to Gallery 3 and preserve the 89 albums and 4000+ photos with comments etc. that exist for this client.

Questions - I imagine these are basic questions for those of you with Gallery experience but I have not used it.
1) Will the current integration with joomla create problems using the upgrade process? (I've not used Joomla before either and it appears to have added a gazillion folders and files to the site)
2) If so -- Would I best better off doing a fresh INSTALL (vs. upgrade) of Gallery 3 and then IMPORT the albums folder?
3) If that is the route to go (#2) will I need perform some kind of UNINSTALL of Gallery 1 first?
3) If #2 is best (new install/import)....If I backup the ALBUMS folder for the current G1, will I have all that is needed to recreate the gallery after installing G3, or are there other folders also (i.e., where comments are stored etc.)

I will be deleting all of the Joomla stuff along with the old pages as soon as I get the new pages all coded. I am recoding "in situ" (recoded pages have different filenames from existing ones) but none of the recoded pages are live yet...waiting until they are all done. So there is no HOST migration involved -- the site is staying where it is and Gallery 1 functions fine there.

Thanks for any help.

Tracy Comer
Common Chord Web Services