Gallery 3 does not work with php5.3.6 and suPHP

unixguru

Verified User
Joined
Mar 6, 2010
Messages
70
Location
Four Marks, Alton, Hampshire
Now I have both php5.3 and suPHP by Gallary3 installations have died.

I googled this and played about for ages, has anyone else been able to fix this issue on a directadmin box?

Error Log

[Sun Mar 27 22:43:18 2011] [error] [client 90.215.yyy.xxx] Premature end of script headers: index.php
[Sun Mar 27 22:43:19 2011] [error] [client 90.215.yyy.xxx] Premature end of script headers: index.php
[Sun Mar 27 22:43:19 2011] [error] [client 90.215.yyy.xxx] Premature end of script headers: index.php

All directories are 755 and files 644 as I set them with

find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
 
Last edited:
I've moved the thread to the MySQL/PHP subforum, where it stands a better chance of getting a response.

Where did that error log come from?

Jeff
 
That's just the last couple of line from the standard users apache log as displayed in da.

Both installatron and Softaculous installs give this error, but I've been other people have fixed the issue, but I can't see how, have played around for hours.

However, as always, it's probably something simple, once you know how!
 
Stat Output

[root@hex7 public_html]# stat index.php
File: `index.php'
Size: 3953 Blocks: 8 IO Block: 4096 regular file
Device: 902h/2306d Inode: 67321911 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 516/ grinny) Gid: ( 517/ grinny)
Access: 2011-03-31 10:49:05.000000000 +0100
Modify: 2011-01-30 09:19:20.000000000 +0000
Change: 2011-03-31 10:48:15.000000000 +0100

Permissions for suPHP files with php complain if more than the the user has write access.
 
Sorry to reply to this old topic, but we are having the exact same problem.
We are using PHP 5.3.8 with SuPHP and have the following error after installing Gallery 3.0.2;

Premature end of script headers: index.php

To be sure I have corrected alle the files and folders:

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chown -R gallery.gallery *

And I also tried "/usr/local/directadmin/scripts/set_permissions.sh set_user_home gallery"

[root@web02 gallery3]# stat index.php
File: `index.php'
Size: 3650 Blocks: 8 IO Block: 4096 regular file
Device: fd00h/64768d Inode: 8750423 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 511/ gallery) Gid: ( 513/ gallery)
Access: 2011-12-14 15:05:46.000000000 +0100
Modify: 2011-05-25 06:04:04.000000000 +0200
Change: 2011-12-14 14:44:12.000000000 +0100

Does anyone have an idea where to further search for this problem?
 
If it's not a permissions issue, then try to debug the index.php, using a simple set of "var_dump()/die()" within the script.
 
I ran into that a few weeks back. There is a "fix" to this issue, not a very good in my opinion, but it should work, you can see it here.
 
Wow has this still not been patched by them. I just tried to install gallery3 and ran into this problem...ugh!
 
Anyone know if it works with mod_ruid2? Otherwise I want to remove it from our Installatron list.

Jeff
 
Back
Top