Sunday, February 24, 2008

How to run Executable CGI in IIS7.0 (Vista)

Step 1. Go to Control Panel and click on Programs
Step 2. Choose "Turn Windows Features On or Off"
Step 3. Check World Wide Web Services and CGI

Step 4. Go to Administrative Tools and open up IIS Manager.
Step 5. Add a virtual application folder, name it "CGI" or "CGI-BIN".
Step 6. Point to the Root Item (your PC name) and choose "ISAPI and CGI Restriction".
Step 7. Click Edit Feature Settings and check "Allow unspecified CGI modules".
Step 8. Click the "CGI" or "CGI-BIN" folder and choose "Handler Mappings".
Step 9. Click "Edit Handler Permission", uncheck "Read" and check "Execute".
Step 10. Double click on "cgi-exe" to change the property if necessary. Example, change request path to *.cgi (from *.exe) if your cgi extension is .cgi instead of .exe.

No comments: