php malformed header from script

Ronnie Gauthier ronnieg
Sat Feb 18 10:52:10 PST 2006


On Sat, 18 Feb 2006 10:02:50 -0500
"David Bandel" <david.bandel at gmail.com> wrote:

> Folks,
> 
> OK, all you PHP lovers out there.  When I run a php script with apache I get:
>  malformed header from script. Bad header=Launching... (script name)
> 
> If I run php ./phpscript.php from a command line it works.  So I must
> have something hosed in my apache setup.  It wants to execute the php,
> so that part is right.  I also allow ExecCGI Includes FollowSymLinks.
> 
> Any ideas?
> 

If you have php compiled as a cgi then it is probably that apache 
expects to be able to send its own headers. So if you do this
header ("http/ blah blah") you get an error
replace the http with status
header ("status: blah blah")

HTH 
Ronnie


More information about the Linux-users mailing list