Hi all... I have just migrated my site to G3.. very nice indeed.
Having used gallery for 5 years the G3 is a quantum leap. Kudos to those involved.
I am doing a total site rebuild and moving the site to a TLD.. so I need to move the new installation of G3.
Plan A:
Install totally new G3 to new domain, then import where the albums from the old domain and then import the the database.
Will this work?
Plan B:
Just move the whole G3 site. I am not sure what need adjusting re configuration. I can do it with G2, but with G3 it is a bit more tricky I am guessing.
Any guidance greatly appreciated..
At this stage I will try plan A.. and report back... (unless I hear otherwise)
Regards
Simon B
Posts: 16504
G3 is much easier to move around than G1 or G2, you don't have to worry about paths or anything nearly as much.
You can move the whole install (including DB) or just move the DB and /var directory and put your old /var directory under the new G3 install.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 128
Somebody has been reading my mind!!
I was wondering about the most SANE path for moving a fully populated Gallery3 over to a new server system (in house).
I plan on waiting till after the RC versions are completed though.
After getting current system upgraded to correct version and building a new empty gallery to the same version,
making all the themes and properties the same on both:
1 - freeze any changes,
2 - copy var folder over,
3 - purge new DB and set it as replication member from original
When 2 and 3 are finished, change DB from replication to master
and alter apache to serve the new site as Gallery3
Martyn T. Griffin
Posts: 16504
Why not just dump from the test site and import to the production site?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 9
Ok all good... with a few hurdles along the way. I will share as it may help others (and I hate searching forums for answers only to find "solved it".. )
1st problem - table prefix (in the dbase) with the G2>G3 migration, the new G3 table did not have any prefix (like G2_). I included G3 in the new instal. Easy fix was just delete the new install and dbase and reinstall with any table prefixes.
2nd - Was getting the Fatal Error after new dbase was imported. Solution is to either just bring the database.php (which is in the old G3 install /var/ and bring it into your new G3 (or copy and paste the info that is in that file - line 31-37 - from the old install to the new one.
Site worked. Then tested upload and got the Upload Error - Bad file etc.
Noticed in /var/ was missing upload and tmp folders and that my graphic application was not active. Activated that and all good.
Regards
Simon b
Posts: 128
That would also work, but the replication approach is very simple to setup and then just happens and is a personal preference.
I have done this before with several databases and never had any issues, and if the database must remain live during the move, that is taken care of.
Martyn T. Griffin
Posts: 16504
Martyn, thanks. I'll have to look into that. But any guide we create most likely won't include doing replication because most people probably can't do that.
sambob, thanks for the feedback.
Possibly because those directories were empty depending on how you backed them up maybe they didn't get backed up. The graphics package may be in a different location on your new server. Where you using GD or ImageMagick?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 55
What about changing the installation folder name ?
For example, mine is installed in a "portfolio" folder. What about if I have to change it to a "photos" folder ?
Posts: 16504
Change it! The only thing that might break is if you have permissions set. If so, you'll just need to go to Admin > Maintenance and run the Fix Gallery task.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 55
just tried, can't believe it worked...
I've never saw that. Usually, when you change an installation folder name, you have to modify a "config.php" file somewhere, amazing !