invalid
03-06-2005, 07:12 PM
Hi,
I am very very new to cgi scripting, and am in need of some assistance.
I was recently given a cgi script, in the form of a C file. Being new to cgi, I checked some websites and was told to do the following:
gcc -o test.cgi test.c
This produced the executable to be run. If I run it from the command line, it works fine - though if I try to call http://myhost.com/cgi-bin/test.cgi I get a 500 Internal Server Error.
I know that a perl cgi script works, as there was an example in the folder already.
Is there a setting somewhere I should be fixing? Or shoul I be doing something differently to get a C program to cgi?
Thanks in advance!
Cb
I am very very new to cgi scripting, and am in need of some assistance.
I was recently given a cgi script, in the form of a C file. Being new to cgi, I checked some websites and was told to do the following:
gcc -o test.cgi test.c
This produced the executable to be run. If I run it from the command line, it works fine - though if I try to call http://myhost.com/cgi-bin/test.cgi I get a 500 Internal Server Error.
I know that a perl cgi script works, as there was an example in the folder already.
Is there a setting somewhere I should be fixing? Or shoul I be doing something differently to get a C program to cgi?
Thanks in advance!
Cb