Post your script. Or, if it is large, just email it me.
But before you do...did you create this script on a DOS/Windows
machine? If so, your problem may be extra linefeed (or is it carriage
return) characters.
Ken Dalton wrote:
>
> I've just installed Redhat Linux 6.0.
> Here is the error I am still getting...
>
> I set the ScriptAlias , Addhandlers, even execCGI and set the permissions
> to all the directories and scripts to 755 or 777
>
> When i type in netscape http://localhost/~ken/cgi-bin/env.cgi
> The browser says something along the lines of 'premature end of script
> headers'
>
> (i did restart apache after I made any changes)
>
> I've spent hours and hours trying to get it to work with the same problem
> each time..
>
> The script runs fine off the command line by the way..
> Also ,I tried it logged in as root and user KEN. No luck..
>
> For some reason it just doesnt want to run the .pl or .cgi scripts..
> The scripts work fine on other servers I might add.
>
> Any suggestions ???
--
My public encryption key is available from
www.az.com/~drysdam/crypt/rysdam.gpg.html
and of course www.keyserver.net