Premature end of script headers: index.php
woollypigs
![]()
Joined: 2011-12-13
Posts: 10 |
![]() |
Hi I tried to update from 3.0.3 to 3.0.4 but had no luck, nothing happened. I tried to poke around and ended up with a 500 error. So I decided to backup and start with a fresh install. I uploaded the files to the server plus the var folder made sure that the files were chmod 777. I have followed these steps to the letter : http://codex.gallery2.org/Gallery3:User_guide:Gallery3:Installing_and_upgrading#Upgrading When I go to http://www.woollypigs.com/galleries I get a 500 error. When I look in my error log (no the one in var/log) I see this : [Thu Oct 11 08:47:01 2012] [error] [client xxx.xxx.xxx.xx] Premature end of script headers: index.php Have no clue what that means. The very last log entry on var/logs is here, before it went wrong : 2012-10-10 17:26:27 +01:00 --- error: Database_Exception [ 44 ]: #2002: No such file or directory Am I right that I have to set my .htaccess file up like this? To have gallery3 to run in the galleries folder aka www.woollypigs.com/galleries <IfModule mod_rewrite.c> Do I need to change the .htaccess file in my root folder (where I run a wordpress blog) I know this have worked before but now for the life of me I can't get it to behave. I just had a poke around while typing this I found that if I edit my root .htaccess to have RewriteEngine Off and my /galleries .htaccess to have RewriteBase / (not /galleries) I get the page a wordpress but not a gallery3 page. Any pointers ? Sorry for rambling, it is getting late and I'm confused |
|
woollypigs
![]()
Joined: 2011-12-13
Posts: 10 |
![]() |
Anywoo I managed to get it back to work again, after playing around .htaccess. Though the funny thing is that I downloaded and installed 3.0.4 on the server, but I get this error - A newer version of Gallery is available! Upgrade now to version 3.0.4 (remind me later) Go figure. |
|
tempg
Joined: 2005-12-17
Posts: 1857 |
![]() |
woollypigs wrote:
Anywoo I managed to get it back to work again, after playing around .htaccess It may be useful to post more info on what htaccess conflict caused the error and more info on the solution (for anyone else that runs into this issue and find the thread). |
|
woollypigs
![]()
Joined: 2011-12-13
Posts: 10 |
![]() |
You are right After many different set up where I either got an 500 error or the blank galleries page in wordpress. I ended up with this in the .htaccess in my root folder. # Switch rewrite engine off in case this was installed under HostPay. SetEnv DEFAULT_PHP_VERSION 5 DirectoryIndex index.cgi index.php index.html # BEGIN WordPress And this in the .htaccess in the /galleries folder where Gallery 3.0.4 (I know I downloaded that version) # Set some reasonable defaults for PHP. Most of these cannot be set # Try to disable the parts of mod_security that interfere with the # Increase security by uncommenting this block. It keeps browsers # Improve performance by uncommenting this block. It tells the # You can use the mod_rewrite Apache module to get rid of the DirectoryIndex index.cgi index.php <IfModule mod_rewrite.c> |
|