Debian 7.8 Premature end of script headers:

7 posts / 0 new
Last post
#1 Tue, 03/03/2015 - 08:53
masp

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

Tue, 03/03/2015 - 09:12
masp

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

Tue, 03/03/2015 - 09:30
masp

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)

Tue, 03/03/2015 - 09:57
andreychek

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:

<div class="codeblock"><pre><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />&nbsp;phpinfo</span><span style="color: #007700">(); <br /></span><span style="color: #0000BB">?&gt;</span></span></code></pre></div>

Do you receive the same error with it?

-Eric

Tue, 03/03/2015 - 10:12
masp

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)

Tue, 03/03/2015 - 13:19
masp

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

Wed, 03/04/2015 - 06:07
masp

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

Topic locked