Premature end of script headers: index.php, Premature end of script headers: index.php,
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Premature end of script headers: index.php,

Started by yonatan, December 08, 2012, 06:51:58 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

yonatan

hello
i cannot use the gallery.
i can see  " internal server error"
checking with the web host the apache logs give me the following output:

Premature end of script headers: index.php

permissions are correct, when i upload a phpinfo file to the same directory it works correctly.
also on the same server, i have vbulletin phpbb and whmcs installed correctly.
only copermine shows this error.
all documentation refers to permissions ( which are checked )
safe mode is set OFF for this account.

the server is running php 5.2 in fast-cgi
including GD

[PHP Modules]
apc
bcmath
calendar
ctype
curl
date
dom
exif
filter
ftp
gd
gettext
hash
iconv
imagick
imap
ionCube Loader
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
posix
Reflection
session
SimpleXML
soap
sockets
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter
xsl
zip
zlib

[Zend Modules]
the ionCube PHP Loader


apache is latest 2.2 from source
php is compiled from source also.
execution time is set to 60 seconds.


how can this be resolved ?


Αndré

Quote from: yonatan on December 08, 2012, 06:51:58 PM
permissions are correct, when i upload a phpinfo file to the same directory it works correctly.
Do both files also belong to the same owner and group?


Maybe this helps: http://encodable.com/premature_end_of_script_headers/

yonatan

Quote from: Αndré on December 10, 2012, 11:17:27 AM
Do both files also belong to the same owner and group?


Maybe this helps: http://encodable.com/premature_end_of_script_headers/

Hello,
I can confirm zero permission errors.

also ,I have some new tests.
i have copied the content to another server with a slightly different setup, it works.

new server has
php-cgi version 5.3
only GD & no imgick.

might be  a long shot, but i cannot test and remove imgick from 5.2 , due to production environment considerations at this time.



phill104

Are you sure the ownership of the files is correct? If you have root access it is easy to check. Another great  is WinSCP as unlike FileZilla you can see the owner of each file alongside its name and rights. With WinSCP it is very easy to see ownership and perms problems.
It is a mistake to think you can solve any major problems just with potatoes.

yonatan

Quote from: Phill Luckhurst on December 10, 2012, 08:41:18 PM
Are you sure the ownership of the files is correct? If you have root access it is easy to check. Another great  is WinSCP as unlike FileZilla you can see the owner of each file alongside its name and rights. With WinSCP it is very easy to see ownership and perms problems.

Yes positive.
I am also using Linux as my work desktop, and I SSH into the server via the terminal.


Αndré

What happens if you visit login.php in your browser? Have you uploaded Coppermine the same way as your phpinfo test file? What happens if you edit index.php, e.g.
echo '<?php phpinfo(); ?>' > index.php