Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1242 How do I launch a program (.exe) that is located on the Server from a Web page?

irt.org | Knowledge Base | CGI | Q1242 [ previous next ]

Q1242 How do I launch a program (.exe) that is located on the Server from a Web page?

You need to configure the server to recognise .exe files as cgi, then you just point your browser to the URL as normal..

Here's the answer for Apache, the most popular server on the internet.

Edit the file [srm.conf] to contain, either:

AddHandler cgi-script .exe  

or:

ScriptAlias /cgi-bin/ /some/real/path/to/your/cgi_s/

In both cases, you also need to check the [access.conf] file, to make sure that CGI's are "allowed" in those directories. eg...

<Directory /some/real/path/to/your/cgi_s>
AllowOverride None
Options ExecCGI
</Directory>

The scriptalias is the prefered and safest way to do this, as it is easier to manage the access rights on the cgi-bin. That way only trusted users can publish executables, while still allowing the static content of the site to be updated by mortals that are prone to accidents.

Feedback on 'Q1242 How do I launch a program (.exe) that is located on the Server from a Web page?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.