Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

setting up apache for executing C language CGI app.

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

Comments

  • JonathanJonathan Posts: 2,914Member
    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.");

Sign In or Register to comment.