setting up apache for executing C language CGI app.

i'm currently doin some testing on executing a cgi program under apache http server, current version using 2.0.48. The problem is i don't know how to set up the server's httpd.conf file to be able to execute the cgi application. i've tried to put the cgi file inside Apache/cgi-bin, but it doesn't work. i need to know what is the required step to configure the server as other resources that i had found seems apply only with perl language and on UNIX machines. Any guidance gladly appreciates..

Comments

: i'm currently doin some testing on executing a cgi program under : apache http server, current version using 2.0.48. The problem is i : don't know how to set up the server's httpd.conf file to be able to : execute the cgi application. i've tried to put the cgi file inside : Apache/cgi-bin, but it doesn't work. i need to know what is the : required step to configure the server as other resources that i had : found seems apply only with perl language and on UNIX machines. Any : guidance gladly appreciates..You don't mention what platform you on - Linux, Windows or what (I'm guessing not UNIX... ;-)). Some things to do:-

1) The cgi-bin is the "right place" as such, but is it configured to execute things in Apache? For example, is it ScriptAlias'd?

2) The extension of the file may or may not matter. Try giving it a .cgi exetnsion.

3) If on Linux (don't know about Windows) check that the program has execute permissions.

Also, in what way doesn't it work? "it doesn't work" isn't particularly helpful - you probably wouldn't be asking if it did. Do you get 500 server error, for example?