Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Premature end of script headers: index.php,  (Read 11194 times)

0 Members and 1 Guest are viewing this topic.

yonatan

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Premature end of script headers: index.php,
« on: December 08, 2012, 06:51:58 pm »

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

Code: [Select]
[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 ?

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Premature end of script headers: index.php,
« Reply #1 on: December 10, 2012, 11:17:27 am »

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/
Logged

yonatan

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Re: Premature end of script headers: index.php,
« Reply #2 on: December 10, 2012, 08:28:08 pm »

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.


Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Premature end of script headers: index.php,
« Reply #3 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

yonatan

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Re: Premature end of script headers: index.php,
« Reply #4 on: December 11, 2012, 11:55:50 am »

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.

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Premature end of script headers: index.php,
« Reply #5 on: December 11, 2012, 01:28:21 pm »

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.
Code: [Select]
echo '<?php phpinfo(); ?>' > index.php
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.