[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

setting up Apache for CGI



Perhaps this is slightly off-topic, but this might still come under the
"newbie" category.

I am trying to get Apache to allow CGI scripts from user cgi-bin
directories. I've looked at the Web HOWTO, and at apache.org for help, but
perhaps my question is too easy.

Basically, I'm trying to get it set up so users have a .public_html
directory in their home directory, and cgi-bin within that. I think I have
that set up correctly, because if I don't name a CGI *.cgi, it will output
the cgi script source in the browser. Otherwise, the error (500) I always
get is:

The server encountered an internal error or misconfiguration and was unable
to complete your request.

The logs say "Premature end of script headers", but I'm positive the script
is correctly formatted , since I've used it in other places. It has the two
newlines following the content-type. I've tried both a perl script and a
shell script. Any suggestions?

John




Reply to: