I just want to run an executable program.

This is a discussion on I just want to run an executable program. within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, Can someone tell me how I can get Apapache to run a C program that I've compiled as ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-26-2005
yarmfelder@yahoo.com
 
Posts: n/a
Default I just want to run an executable program.


Hello,

Can someone tell me how I can get Apapache to run a C program
that I've compiled as a cgi-bin program?

I've given up on PHP since mod_php isn't not even included
with my distro. In the time I've wasted trying to get
PHP running, only to realize mod_php isn't even in the
php tarball, I could have finished a C equivalent of
my project.

But now I need to make that runnable. Can someone
explain what the quick answer is to running C code as
cgi-bin?

Thanks.

  #2 (permalink)  
Old 06-29-2005
Tero Hänninen
 
Posts: n/a
Default Re: I just want to run an executable program.

On 26 Jun 2005 06:39:10 -0700, yarmfelder@yahoo.com <yarmfelder@yahoo.com>
wrote:
>
> Hello,


Hi,

>
> But now I need to make that runnable. Can someone
> explain what the quick answer is to running C code as
> cgi-bin?


Well the quick answer is that you'd basically drop the binary into your
webservers cgi-bin dir and make sure it's executable.

You'll need to have mod_cgi enabled in your Apache along with some
configuration directives:
ScriptAlias /cgi-bin/ /path/to/your/cgi-bin/
<Directory "/path/to/your//cgi-bin">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

This might help as well:
http://httpd.apache.org/docs/howto/c...chetopermitcgi

Cheers,
Tero
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:37 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0