Migrating to new server - Open Suse to CentOs

rberthold01

Joined: 2008-03-27
Posts: 14
Posted: Wed, 2012-10-31 04:36

All, (most likely flordiadave - I have seen you answering some of the other migration issues)
I am moving my gallery3 server from an open suse 10 server to an CentOs 6 server. I did everything according to the following docutmentation:
http://codex.gallery2.org/Gallery3:User_guide:Gallery3:Installing_and_upgrading#Moving_your_installation_to_a_different_server
and i am getting an HTTP Error 500 when navigating to the site.
I think it is a issue from moving absolute paths on servers.
Suse /srv/www/htdocs/gallery3
CentOs /var/www/html/gallery3

I have checked the appache logs and it only complaining about a favicon.ico that I have installed and my other install that is working is complaining about it as well. Let me know and I can get you other details if needed. I tried to search the forums but couldn't see anyone else having the same issue.

Ryan

 
rberthold01

Joined: 2008-03-27
Posts: 14
Posted: Thu, 2012-11-01 01:28

ecpasar,
Could you please elaborate a little on your comment? Are you saying that this is something that is known to happen when trying to import to another distro?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2012-11-01 03:10

Does a php info file work?
500 errors should be logged by the error logs.
Paths to the pages don't matter unless there is some rewrite rules in the .htaccess.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
rberthold01

Joined: 2008-03-27
Posts: 14
Posted: Thu, 2012-11-01 03:28

Dave,
Yes the php info page works. I even set up a new install of gallery3 different database and different directory and it works fine. I can give you the url if you want to poke around with it. I am not seeing anything in the /var/log/httpd/error_log when I reload the page.

 
rberthold01

Joined: 2008-03-27
Posts: 14
Posted: Thu, 2012-11-01 03:38

my gallery has a lot of .htaccess files but the one you are refering to would be in ./gallery3/.htaccess right? I have no rewrite rules in this file.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2012-11-01 04:57

Point the working g3 install to your db (edit database.php in the var dir) and copy the /var/albums directory as well. That should work. If not I suspect some db migration issue.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
rberthold01

Joined: 2008-03-27
Posts: 14
Posted: Thu, 2012-11-01 15:50

floridave,
I think that may have solved the issue. I will just probably need to rebuild my thumbnails. I am still in the process of moving the pictures to the new directory. I really think you should have that information put in that main page I referenced at the top. Just to copy the albums directory if copying the var didn't work. I have been dealing with this for a few days trying multiple new senarios and no luck. Plus I don't think of myself as a noob so it is even more frusterating. Thanks again for helping me keep a few hairs from turning gray. I was almost out of space on my OpenSuse server 2gb left and didn't want to upgrade it because it is obsolete and I was moving everything over to a virtual box server running CentOs.
Ryan

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2012-11-01 16:13

If the directions need clarification please make the changes as needed. The docs are for users by users. If you feel uncomfortable contributing this way for the benefit of others please give me suggested wording and I can make the changes.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team