Gallery not working at all after server migration
kyle1745
Joined: 2002-09-06
Posts: 68 |
![]() |
After migrating my site to a new new server I have been unable to get the site to respond at all. My other migrations went well and are up and running (vbulletin and etc). Database is active and account has been validated to have proper access and correct credentials in the config.php. I have also tried to turn on debug with no results. The only relevant error I can find is: malformed header from script. Bad header=<br />: main.php Thanks in advance for any ideas.
|
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
look to your g2data/versions.dat for your version -s |
|
kyle1745
Joined: 2002-09-06
Posts: 68 |
![]() |
Version is 2.3 and the upgrade folder only produces a blank page. Similar to to the main page. I can get to a simple html file without issue. |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Server error logs will lend a clue. I will say that cpanel server's don't allow directories to be better that 0755 so you can try from cmd line within your G2 directory: find . -type f -print0 | xargs -0 chmod 0644 find . -type d -print0 | xargs -0 chmod 0755
-s |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
You most likely ran a PHP version <= 5.2 on your old server and your signature says you now have PHP 5.4. -- |
|
kyle1745
Joined: 2002-09-06
Posts: 68 |
![]() |
Only the site data and database were copied over. The HTTD configuration is current for the new install. I am also not seeing anything of any value logged. |
|
kyle1745
Joined: 2002-09-06
Posts: 68 |
![]() |
I at least can get a error message after adjusting the permissions of the files to 655: Warning: require_once(/home/kylespho/public_html/modules/core/classes/Gallery.class): failed to open stream: Permission denied in /home/kylespho/public_html/bootstrap.inc on line 33 Fatal error: require_once(): Failed opening required '/home/kylespho/public_html/modules/core/classes/Gallery.class' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kylespho/public_html/bootstrap.inc on line 33 I did try the commands you posted but received the same blank page as originally stated. Also worth noting that the site was originally on a cpanel site. |
|
kyle1745
Joined: 2002-09-06
Posts: 68 |
![]() |
Any other ideas? I did end up reverting back to php 5.3.20, but still the site will not do anything. Even going diectly to main.php or index.php. phpinfo.php works fine. Apache logs are no showing any relevant errors. I even went as far as removing the entire cpanel account and recreating it, and restoring the DB and still no luck. |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
does /home/kylespho/public_html/modules/core/classes/Gallery.class exist? -s |
|
kyle1745
Joined: 2002-09-06
Posts: 68 |
![]() |
Yes it does. Also in an attempt to get anything working I downloaded the latest version of 2 and have uploaded and I am unable to load the update/install.php. |
|
kyle1745
Joined: 2002-09-06
Posts: 68 |
![]() |
I did just find this error when trying to run the update: SoftException in Application.cpp:574: Could not execute script |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
try uploading/installing a fresh copy and see if it runs. -s |
|
kyle1745
Joined: 2002-09-06
Posts: 68 |
![]() |
I can eliminate the error by updating the permissions back to 755 but still nothing. |
|
kyle1745
Joined: 2002-09-06
Posts: 68 |
![]() |
huh? |
|
kyle1745
Joined: 2002-09-06
Posts: 68 |
![]() |
The installer does open and it passes the checks. I did not complete the install hoping I can salvage my original install. |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
install a new gallery ++ new g2data and make sure the codebase is working properly. Then import your old DB and edit gallery2/config.php w/ the path to your old g2data -s |
|