| CGI: running CGI executables and CGI.EXEs vs EXEs |
Article ID:535 |
Understanding CGI executable execution on a webserver:
It's important to note that a CGI executable is NOT a standard executable. A CGI executable is not a standard exe file. You can't just take a standard DOS or Windows executable program and run it as a CGI application on a webserver that supports CGI (even a Windows/IIS webserver). A CGI application must be written to the CGI 1.1 Specification, including implementation of certain standards for input and output.
Reference: http://blogs.msdn.com/david.wang/archive/2005/08/14/HOWTO-Setup-a-CGI-EXE-on-IIS.aspx
Running CGI executables:
In order to run a CGI a CGI executable on your website hosted on either our Windows Shared Hosting plans or Windows Dedicated Managed server plans:
- the application/executable must written to the CGI 1.1 specification
- the CGI executable must be placed in the "/cgi-bin" directory off your FTP root (this is not below httpdocs, it's at the same level as httpdocs).
- submit a support request asking us to enable CGI execution of that executable... if you have more than one cgi executable file, we must enable execution for each executable (you can specify multiple executables in a single request).
CGI executable sample:
The associated download is a sample CGI executable which you can use on your site to test CGI executable execution... be sure to follow steps 2 and 3 above to ensure you're placing into cgi-bin directory (unzipped), and requesting cgi execution be enabled before you attempt to use the sample.
If you've properly followed those steps, when you visit www.yourdomain.com/cgi-bin/cgi-test.exe you will see
This is a test
Time: current date and time
Thank you to customer Daniel Jette for sharing this sample.
|
| Downloads associated with this article: |
cgi-test.zip : sample CGI executable
|
Back
to Search or Browse |