LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Apache 1.4.7 cgi problems (https://www.linuxquestions.org/questions/programming-9/apache-1-4-7-cgi-problems-105984/)

Sm0k3 10-19-2003 01:45 PM

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

trickykid 10-19-2003 02:12 PM

Moved: More suitable in Programming.

PS. Also I've never heard or Apache 1.4.7, I thought the latest was 2.1.x ? And if you post more output of your script your creating, I'm sure someone could help some more with the details provided.

Regards.


All times are GMT -5. The time now is 08:41 AM.