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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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 |