Debian 7.8 Premature end of script headers:

mod_php works ok , but
fastcgi_php failed:

Debian 7.8 Premature end of script headers: index.php
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server

AddHandler fcgid-script .fcgi

MaxRequestLen 15728640
FcgidConnectTimeout 20
MaxProcessCount 100

  • not helps

can some one help ? I can give root
thanks

malformed header from script. Bad header=
: php5.cgi

this error become when website was restored from debian 6
if it possible how to recreate all fstcgi related for this website
(for new website all is ok)

Howdy,

You could always disable the “Apache website” feature in Edit Virtual Servers -> Enabled Features, and then re-enable it. That will re-generate the Apache config.

Another thing, is that I’d be curious if a simple PHP test script worked.

For example, something like this – just create a test.php file, and add the following to it:

<?php phpinfo(); ?>

Do you receive the same error with it?

-Eric

that same error

malformed header from script. Bad header=
: php5.cgi

have no idea/, ( how to resolve

(website virtualmin Created on 19/Sep/2009 14:15 by root ) ,
this backup from that same virtualmin debina 6 to debian 7.8)

  1. “Apache website” disabled
  2. php.ini of website removed (manually)
  3. cgi-bin removed
  4. fast-cgi renamed (can remove from ftp)
  5. “Apache website” enabled then all works ok

But how to make all this some automatically ?

steps 2-3-4 maybe not all required but it helps

my solution is :

cd /home/xenforofun/etc
rm php.ini
rm dav.digest.passwd
rm php5/php.ini

virtualmin disable-feature --domain xenforofun.com --web
virtualmin enable-feature --domain xenforofun.com --web