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.
Gallery version (not just "2"): 2 something, can not find exact version in any of the files (main, index, config...)
PHP version (e.g. 5.1.6):5.4
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): 2.2.23
Database (e.g. MySql 5.0.32): 5.5.28
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux): CentOS 6.3
Browser (e.g. Firefox 2.0): any (IE, chrome ,firefox)
Posts: 8339
look to your g2data/versions.dat for your version
head to yoursite.com/gallery2/upgrade/ and run the upgrader to step2(system checks) and see if there are any corrupted/modified file
-s
________________________________
All New jQuery Minislideshow for G2/G3
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.
Posts: 8339
Server error logs will lend a clue.
All we can do is guess.
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:
-s
________________________________
All New jQuery Minislideshow for G2/G3
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.
If this is the case, and you have copied your Apache configuration across from your old server, check your Apache configuration files and make sure that
Action application/x-httpd-php5
is pointing to a "php-cgi" binary and not to a "php" binary.--
dakanji.com
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.
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.
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.
Posts: 8339
does /home/kylespho/public_html/modules/core/classes/Gallery.class exist?
-s
________________________________
All New jQuery Minislideshow for G2/G3
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.
Posts: 68
I did just find this error when trying to run the update: SoftException in Application.cpp:574: Could not execute script
Posts: 8339
try uploading/installing a fresh copy and see if it runs.
If not it is a server misconfiguration error.
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 68
I can eliminate the error by updating the permissions back to 755 but still nothing.
Posts: 68
huh?
Posts: 68
The installer does open and it passes the checks. I did not complete the install hoping I can salvage my original install.
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
________________________________
All New jQuery Minislideshow for G2/G3