Is there a HowTo for migration Gallery 2 from an Ensim server to a cPanel server?

vividere

Joined: 2004-11-25
Posts: 84
Posted: Mon, 2007-02-12 20:14

I was ignorant to think that when I hired someone to migrate some domains from Ensim to cPanel that things would move over properly and work as they have from Ensim to Ensim.

It seems that the MySQL databases names have changed, the users have changes, permissions, and other file attributes.

I am hoping that this is something that has been done before and documented. I have a client that is down until I can get their migrated Gallery to work.

I know in a "normal" migration you are told to move the albums over and install Gallery on the new server. I don't know when a whole domain was moved over with rsync that the steps are the same. I don't want to lose any customer data or customization they might have done.

Any help would be appreciated.

Lew

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2007-02-12 20:30

Move the datadir and g2 installation files over. Backup the database on the old site, and restore it on the new site. Update the gallery2/config.php to use the new g2data path, and database details. Make sure that the apache user on the new server has read and write permissions to the g2data directory.

That should be it.


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-02-12 20:30

gallery 2 has not much to do with ensim or cpanel. those or just administrative tools, often accompanied by auto-installation tools.
but the end product is still a g2 running on a php enabled webserver connecting to a database server.

so the normal migration instructions apply:
FAQ: How can I move my gallery installation from one server to another?

--------------
Enter the Gallery 2 Theme Contest today!

 
vividere

Joined: 2004-11-25
Posts: 84
Posted: Mon, 2007-02-12 20:45

Valiant,

It isn't that simple because in addition to other things, the two control panels have a different file naming and user name conventions.

The database and user name on Ensim are not the same on cPanel.

The "owner" was Admin on the old one and richardm on the new one.
I don't remember the old dBase name, but the name was changed when migrated to cPanel.

When I moved from Ensim to Ensim I didn't have these naming and path issues to contend with.

H0bbel,

Thanks for your response, you seemed to have a more thorough answer that might lead to a solution. I will pass that along to the geeks who are helping out.

I am hoping the new server will work with Gallery better. Gallery has been a major pig on my old server. It can take a long time to launch gallery and do any of the admin functions. Quite often I would get errors when trying to upload new photos.

I hear about people with much larger Gallery albums on their servers than what I have and they seem to be working fine. I am not sure why my luck hasn't been as good. My old server is a P4 2.6G with 2GB RAM and an IDE drive. The new server is a 2.4G Xeon Dual with a SATA Raid 10 and the same 2GB of RAM. It always seemed to me the old server should have been powerful enough to handle the Gallerys that were installed on it but apparently not??

Thanks to both of you!

Lew

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2007-02-12 21:34

The basics of getting stuff moved over is just the same as Valiant pointed out. just make sure you update the Gallery 2 config file with the new paths and database logon information after all the files has been transferred over.


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
vividere

Joined: 2004-11-25
Posts: 84
Posted: Mon, 2007-02-12 22:11

Yes, I just wish someone would put down all the little steps into one howto.

1. how to do the transfer because I am assuming how the data moves changes how it shows up
2. what files in what directories to change permissions (nobody) and any chmod values (777/755)
3. what config files to be changed to what names, paths, and values

I don't know all the nuances and I understand things will change a bit based on versions, etc., but it would be nice if someone who knew what they were doing would document the steps.

I am waiting for a test signon to see if the problem has been fixed...thanks for all the help!

Lew

 
vividere

Joined: 2004-11-25
Posts: 84
Posted: Wed, 2007-02-14 16:38

I had some people move things over for me and things seem to be working but now about the album highlight pictures I get this error message:

Warning: fopen(/home/nikitale/public_html/gallery/albums/videos/photos.dat.lock) [function.fopen]: failed to open stream: Permission denied in /home/nikitale/public_html/gallery/platform/fs_unix.php on line 66
Error: Could not open lock file (/home/nikitale/public_html/gallery/albums/videos/photos.dat.lock) for writing!

Any idea what could be causing this?

Thanks!

 
vividere

Joined: 2004-11-25
Posts: 84
Posted: Wed, 2007-02-14 16:40

BTW, this is a Gallery 1 install...don't know why it was set up as a Gallery 1 but that is what I was handed over by the previous webmaster and then I had to move it from his server to mine.

I was given a FAQ link above but that is for moving a G2, not a G1.

Thanks again!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-02-14 16:48

topic moved to the g1 forums.

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
vividere

Joined: 2004-11-25
Posts: 84
Posted: Wed, 2007-02-14 16:56

Valiant, I am moving G2 domains mostly but my current problem is with a G1 site. Are you unfamiliar with the error message?

Was the process to move and what to change different for a G1? What I am confused about it says it is Gallery 1, but why would it have a MySQL database if it is a G1?

Maybe it is a G2 but doesn't know it :)

Thanks!

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2007-02-14 17:33
 
vividere

Joined: 2004-11-25
Posts: 84
Posted: Wed, 2007-02-14 18:34

Thanks for the help...still wonder why it seems to have a MySQL database since I didn't think that appeard until G2?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2007-02-14 19:39

You might very well have a MySQL database, but Gallery 1 sure doesn't use it. :)


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
vividere

Joined: 2004-11-25
Posts: 84
Posted: Wed, 2007-02-14 23:01

hmmm....very mysterious...I am guessing I should consider upgrading it but if it working fine as a G1, maybe it is best left alone :)

Thanks again!