G2 - Moving to new server woes

lintfree

Joined: 2007-07-28
Posts: 2
Posted: Sat, 2007-07-28 11:47

I've been trying to move my gallery installation to a different server, but all the instuctions I find are vague, incomplete, or just plain don't work. Could someone just post clear, simple instuctions? These are both linux servers for which I have root access, and i would like to move the database and the gallery files exactly as they are right now.

TIA.

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Sat, 2007-07-28 13:41

FAQ: How can I move my gallery installation from one server to another?

are the common denominators in place, running in the background and ready for take off?

disabled Graphics Toolkits?
disabled URL Rewrite module?
is the Database (mySQL, etc..) setup?
is PHP compiled with mySQL support?
is the http server (Apache, etc...) running in the background?
are the directory & file permissions for ~/g2data/ correctly set?
did you update config.php to reflect the new filesystem path?

what doesn't work, exactly? provide specific details so we can assist you further.

 
lintfree

Joined: 2007-07-28
Posts: 2
Posted: Sat, 2007-07-28 19:50

I got it moved, but the examples in the faq for the mysql commands are confusing. Maybe a better writer than myself could clear this up a bit, and move all the steps into a single document?

on the old host, I did this:

# mysqldump --add-drop-table -h localhost -u root gallery2 |bzip2 -c > g2.bak.sql.bz2

then I copied the bz2 to the new host, bunzipped it, and:

# mysql -u root -h localhost -p gallery2 < g2.bak.sql