Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CGI applications written in C not working

Status
Not open for further replies.

danielhozac

Programmer
Aug 21, 2001
2,058
SE
What could possibly be the cause of this?
I wrote a very easy application that just prints Content-type: text/html\n\nHello world. But when I try to access it, I get a Internal server error message.
This is what my error log says
[Thu Apr 11 00:31:01 2002] [error] (8)Exec format error: exec of /path/to/testapp.exe failed
[Thu Apr 11 00:31:01 2002] [error] [client ***.***.***.***] Premature end of script headers: /path/to/testapp.exe //Daniel
 
Check the script that it doesn't have any unterminated lines.

Make sure all the lines end in ';' that should, and that you
ftp the file using ascii mode and not binary.

also you could do a search at Google for 'cgi.pm' and read Lincoln Stein's page.
That could help you out.

Good Luck,
Mike

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top