Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

executable files as cgi

Status
Not open for further replies.

dedotombo

Programmer
Jan 23, 2005
5
IT
Hi
I'd like to use .exe files written in pascal as cgi, but when I try to do it there's an internal server error. I'm trying to enable .exe files in /cgi-bin with the httpd.conf, what do I have to do? I'm running Apache 2 on WinXP.

Thank you
 
dedotombo,

This sounds like a permissions problem with the files or directory. Make sure that the Apache process has permission to execute files within the folder that your CGI scripts are in.

Wishdiak
A+, Network+, MCSA 2003 certified
 
Sorry, I'm not able, I'd be very grateful if you can have a look to these few lines of my httpd.conf:
----------------------
# CGI directory exists, if you have that configured.
#
<Directory "C:/Programmi/Apache Group/Apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to e
----------------------
and
----------------------
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script cgi

#
# For files that include their own HTTP headers:
----------------------
 
In practice I need my server treating .cgi, .pl and .exe files in /cgi-bin like cgi. How can I do?
Thank you
 
dedotombo,

Judging by the above, make sure that if you want to use files with the extension .exe, these files are parsed as cgi.

A line like

AddHandler cgi-script exe

should help.

Wishdiak
A+, Network+, MCSA 2003 certified
 
Ok, the only thing I didn't understand is if I have to write something like
AddHandler cgi-script exe
or
AddHandler cgi-script .exe
Is the dot needed?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top