Apache 1.4.7 cgi problems
Hello everyone, i've ran into a problem with apache, i've been developing a CGI program in C for about 2 months now, and this the first time i've ran into this error.
in error_log, it claims "premature end of script headers", but when i su to nobody (the user that httpd runs as), and export QUERY_STRING and other environment variables, i get a perfectly fine chunk of HTML code.
the cgi automatically outputs 'Content-type: text/html' and 2 LF chars. This is how CGI is supposed to work that i know of... so i don't know if the program is segfaulting when the apache httpd executes it, or if for some reason it isn't doing exit(0) (to exit normally, without error?). I've went through the error logs
|