Hi,
I am about to change my environment. I am using apache 2 (latest) on windows, with mysql 4.1.12, and newest php 4.
My new installation environment is in my footer.
How can I move my G2 gallery? I have tried to move g2data (both with all folders, as well as only the "albums"), as well as the DB. I changed file permission with chmod -R 777. This was impossible to update, so I decided to make an installation from scratch.
Can I make a db transfer for the USERS as well as the gallery so I dont have to start from scratch? Can I move my whole g2data incl all folders inside and not just the "albums"?
My new installation went very smooth when I made it from scratch.
Thanks!
Posts: 32509
a windows -> linux change is easy. it's the same as migrating from one server to another. see the FAQ link in my forum signature. one of the last questions in the FAQ ("Q: How can I move my gallery installation from one server to another? ").
you don't only can, you have to move the whole g2data folder to the new server.
also copy the complete database. just follow the steps in the FAQ...
Posts: 22
Thanks for your answer.
First just a short description what I did.
1) updated my old gallery with the latest build
1.1) deactivated rewrite module
2) took a backup of the DB, into an SQL script.
3) zipped my g2data folder with every folder inside.
4) Created a new DB on my Linux and run the sql script from above.
5) created a /var/www/html/g2data on the linux and unzipped the g2data.zip into this.
6) chmode -R 777 g2data
7) Downloaded the G2Beta3.tar.gz and the latest build and extracted them to /var/www/html/myroot/gallery2, and then chmod -R 777 gallery2
7 Pointed my web browser towards http://localhost/gallery2/install
Everything went smooth until step 8:
-----
----
If I continue on the menu to the left (since there is no continue button at step 8 since it failed), I pass everything. When I then try to access my gallery2, this is what is showing:
---
Posts: 32509
what is "the latest build"? why do you need two g2 codebase versions? g2beta3 and "the latest build"?
you say you passed the core install step? it should just have jumped over it. before the core install step, it writes the new config.php. including the database connection details.
but the error above says that there was a error when getting something from your database.
you could try the following:
go to localhost/gallery2/README.html and there you'll find the most important links of your G2, you need to go to site admin and from there to site admin -> modules to uninstall (not only deactivate) the toolkits. then install them again.
if that fails, you can a) uninstall them manually by manipulating the database manually.
or b) uninstall the toolkits on your old host, backup everything again and move again.
Posts: 70
i'm having exactly the same problem with exactly the same error. i followed the faq. i upgraded my test site to g2b3 (no "latest build").
- Apache 2.0.54
- MySQL 4.1.12
- PHP 4.3.11
- Mandrake 10.1
Posts: 70
also, before i moved g2, i uninstalled ALL of the modules.
Posts: 32509
i've corrected the instructions a while ago, see:
http://codex.gallery2.org/index.php/Gallery2:faq#How_can_I_move_my_gallery_installation_from_one_server_to_another.3F
Posts: 70
oops, missed that one. i'll try that now and report back. thanks.
Posts: 70
SUCCESS! but what a pain. is there any way to automate that? also, all the thumbnails were broken (easy fix at /lib/tools/test), but i thought i'd let you know. i don't know if that's important or not.
anyway, thanks for your help! only 10 more gallery moves to go!
Posts: 32509
automate that?
you could create a SQL script.
you'll have to write it once and can reuse it...
RENAME TABLE oldtablename TO newtablename;
...
Posts: 167
valiant: lol.. glad I could help on #5.
When I moved platforms, I had to re-create all of my resized images.. nothing worked.
I also had some issues with modules (dcraw mostly) that were ONLY resolved by deleteing my gallery2 folder, and doing a fresh gallery install with an existing DB.
My last issue was that some of my image links were 'so' broken that the only way to fix it was to delete the images, or album out of the DB, then re-create them back in G2.
Posts: 78
If anyone has the script,, please upload it!!!!!! Thank you
------------------------------------------------------------------------------
...you can help, too!
Posts: 78
oh, found it
http://codex.gallery2.org/index.php/Image:CaseSensitiveTables.zip
thank you!
------------------------------------------------------------------------------
...you can help, too!