[SOLVED] Moved Server and Now Internal Server Error

jamespaulphotography

Joined: 2012-05-05
Posts: 12
Posted: Sat, 2012-05-19 18:03

Hi Guys,

I've just been moving my entire website over to a new host this weekend and most has gone well apart form a couple of scripts, one being Gallery3. We've moved the SQL database and my Gallery3 folder. Now when i try to open up http://www.jamespaulphotography.co.uk/stockgallery/index.php I just get a blank white screen. Looking at Safari's activity It shows an internal server error. I have looked in the logs and there is nothing, not sure if you need to enable logs anywhere or it's standard behaviour for the app to write something in there whether enabled or disabled. How can I find out more information about what's causing the issue? from the server host comparison it seems as though I am using a much newer version of php 5.3.10 as opposed to 5.2.17 and MySQL version 5.5.22 as opposed to 5.0.85. Could these have any bearing?

Many thanks for anyone's help
Regards
James

Login or register to post comments
jnash
jnash's picture

Joined: 2004-08-02
Posts: 607
Posted: Sat, 2012-05-19 18:11

try removing the .htaccess file temporarily and see if that helps. If it does, check your rewrites, etc. in the file.

Login or register to post comments
jamespaulphotography

Joined: 2012-05-05
Posts: 12
Posted: Sat, 2012-05-19 18:29

Sadly it didn't work.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25961
Posted: Sat, 2012-05-19 20:19

There should be somthing in the gallery3/var/logs when visiting:
http://www.jamespaulphotography.co.uk/stockgallery/index.php
If you get just a blank white screen then your Apache error logs should yield a clue.
http://www.jamespaulphotography.co.uk/stockgallery/hahaha
should deliver a gallery 404 page so I bet there is some rewite rule out there some place.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7892
Posted: Sat, 2012-05-19 21:24

My last move the error was bad path in .htaccess

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

Login or register to post comments
jamespaulphotography

Joined: 2012-05-05
Posts: 12
Posted: Sat, 2012-05-19 22:11

There doesn't look to be any issue with the .htaccess file that I can see in regard to paths. This is what I have found from the logs

2012-05-19 22:02:41 +00:00 --- error: Database_Exception [ 44 ]: #:
/home/jamespau/public_html/stockgallery/system/libraries/Database_Mysql.php [ 56 ]
#0 /home/jamespau/public_html/stockgallery/system/libraries/Database_Mysql.php(130): Database_Mysql_Core->connect()
#1 /home/jamespau/public_html/stockgallery/system/libraries/Database.php(429): Database_Mysql_Core->escape('var_cache')
#2 [internal function]: Database_Core->quote('var_cache')
#3 /home/jamespau/public_html/stockgallery/system/libraries/Database_Builder.php(764): array_map(Array, Array)
#4 /home/jamespau/public_html/stockgallery/system/libraries/Database_Builder.php(1021): Database_Builder_Core->compile_conditions(Array)
#5 /home/jamespau/public_html/stockgallery/modules/kohana23_compat/libraries/MY_Database_Builder.php(48): Database_Builder_Core->compile()
#6 /home/jamespau/public_html/stockgallery/system/libraries/Database_Builder.php(957): Database_Builder->compile()
#7 /home/jamespau/public_html/stockgallery/modules/gallery/libraries/drivers/Cache/Database.php(105): Database_Builder_Core->execute()
#8 /home/jamespau/public_html/stockgallery/system/libraries/Cache.php(141): Cache_Database_Driver->get(Array, true)
#9 /home/jamespau/public_html/stockgallery/modules/gallery/helpers/module.php(430): Cache_Core->get('var_cache')
#10 /home/jamespau/public_html/stockgallery/modules/gallery/config/locale.php(36): module_Core::get_var('gallery', 'timezone', 'UTC')
#11 /home/jamespau/public_html/stockgallery/system/libraries/drivers/Config/Array.php(70): require('/home/jamespau/...')
#12 /home/jamespau/public_html/stockgallery/system/libraries/drivers/Config.php(111): Config_Array_Driver->load('locale', false)
#13 /home/jamespau/public_html/stockgallery/system/core/Kohana_Config.php(121): Config_Driver->get('locale.language', false, false)
#14 /home/jamespau/public_html/stockgallery/system/core/Kohana.php(385): Kohana_Config_Core->get('locale.language', false, false)
#15 /home/jamespau/public_html/stockgallery/system/core/Kohana.php(150): Kohana_Core::config('locale.language')
#16 /home/jamespau/public_html/stockgallery/application/Bootstrap.php(49): Kohana_Core::setup()
#17 /home/jamespau/public_html/stockgallery/index.php(102): require('/home/jamespau/...')
#18 {main}

I haven't a clue when I look at that :-(

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25961
Posted: Sun, 2012-05-20 02:39

Gallery can't connect to the db. Verify settings in gallery3/var/database.php

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
jamespaulphotography

Joined: 2012-05-05
Posts: 12
Posted: Tue, 2012-05-22 22:06

Hi, just to update I solved this issue. The support team on my new hosting created the database and imported the data but they actually called the database a different name from which it was titled on my old hosts server, they missed one letter off the title name. I just had to rename the database in phpmyadmin and we were good to go. I guess just another thing to check when you are moving servers!

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25961
Posted: Wed, 2012-05-23 02:48

Glad you got it sorted.
If the Docs are not clear in this regard please make the change or suggest wording to make it clearer.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
jamespaulphotography

Joined: 2012-05-05
Posts: 12
Posted: Wed, 2012-05-23 06:50

The documents are fine it's operator error :-) Cheers

Login or register to post comments