CGI Development

Moderators: Jonathan
Number of threads: 57
Number of posts: 124

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
setting up apache for executing C language CGI app. Posted by wesleywj2 on 6 Jan 2004 at 11:52 AM
hello there,

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..

thanks
Report
Re: setting up apache for executing C language CGI app. Posted by Jonathan on 10 Jan 2004 at 2:12 PM
Hi,

: 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?

Hope this helps,

Jonathan

###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.