>From your description, everything looks right. So this means we need to look
past your description to see what is going on. Here is what I suggest:
1. Invoke one of the scripts from the command line and see what it prints
out. See if the headers look right, and see if there are any other problems
that would occur if the script were run via the server. (If the script won't
run from the command line, then fix that - an http server can't run cgi
scripts that aren't executable. From a browser, the error you report does
occur if the script sends back nothing at all, not only if it sends bad
headers.)
2. If this doesn't provide the answer, send us a sample -- either a complete
short script or the portion of one from the beginning to a few lines past
where it prints the headers.
At 12:07 PM 11/2/99 +0530, Gaurav Agarwal wrote:
>Hi,
>I had trouble setting up httpd properly on my Linux Red Hat 6 system
>Actually, everything is okay, except that i am unable to run my cgi scripts.
>On running the scripts i get the 500 server error.
>and in the logs " Premature end of script headers."
[rest deleted]
------------------------------------"Never tell me the odds!"---
Ray Olszewski -- Han Solo
Palo Alto, CA [EMAIL PROTECTED]
----------------------------------------------------------------