PDA

View Full Version : how to run my own .exe files


logictrap
08-30-2009, 04:31 PM
I have a customer that has a series of exe files they wrote with clipper that output html content.

How should apache be configured to use them?

I have the following settings in the http.conf file:


LoadModule alias_module modules/mod_alias.so
LoadModule cgi_module modules/mod_cgi.so
AddHandler cgi-script .cgi .exe
ScriptAlias /cgi-bin/ "cgi-bin/"
<Directory "cgi-bin">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>


The exe file is n a folder named 'cgi-bin'

The url is: http://localhost/demo/cgi-bin/test.exe

The response from the server is:

Forbidden

You don't have permission to access /demo/cgi-bin/notnow.exe on this server.

logictrap
08-31-2009, 08:56 PM
Wow - I thought this would be a no-brainer for an apache wiz, which I clearly am not.

oracleguy
09-01-2009, 01:26 AM
Does the executable have execute permissions for the apache user?

logictrap
09-01-2009, 05:46 AM
I'm not sure - how can I check that?

Apache is running on a Windows vista system.