faqts : Computers : Operating Systems : Microsoft : bilal

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 3 people (100%) answered Yes
Recently 3 of 3 people (100%) answered Yes

Entry

Web server: Microsoft Information Server: IIS: CGI: How to run CGI programs?

Jan 15th, 2007 14:14
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 15 January 2007 - 10:57 pm --------------------

Web server: Microsoft Information Server: IIS: CGI: How to run CGI 
programs?

Create a virtual directory,
and enable run script.

---

Steps: Overview:

 1. -Start Microsoft Internet Information Server (IIS) administration

     1. -E.g. run the command

          "%systemroot%\system32\inetsrv\iis.msc"

 2. -Expand in the left pane 'Default web site'

 3. -Right click

 4. -Select from list 'New'

 5. -Select from list 'Virtual directory'

 6. -Click button 'Next'

 7. -Choose an alias

     1. -E.g.

          cgi-bin

 8. -Browse to the directory where you want to
     create that cgi-bin (if it does not exist,
     create that directory first)

     1. -E.g.

          c:\Inetpub\wwwroot\cgi-bin

 9. -Make sure this checkbox is enabled

     'Execute (such as ISAPI applications or CGI)'

10. -Click button 'Finish'

11. -Copy your cgi files to that directory

     1. -E.g.

          copy *.* c:\Inetpub\wwwroot\cgi-bin

     1. -E.g.

          copy input.exe output.exe c:\Inetpub\wwwroot\cgi-bin

12. -Possibly start Microsoft Internet Information Server (IIS)

     1. -E.g.

         1. -Right click on 'Default web site'

         2. -Select from list 'Start'

     2. -Note:

         Make sure no other web servers run on port 80
         (possibly stop that process (e.g. 'tiny.exe' or 'apache')
          via Microsoft task manager)

13. -Open your browser

14. -Type the URL

      http://<your web server machine name>/cgi-bin/<your cgi filename>

     1. -E.g.

          http://localhost/cgi-bin/input.exe

===

Tested successfully on
Microsoft Windows XP Professional (service pack 2),
running
Microsoft Internet Information Server (IIS) v6.x

===

Internet: see also:

---

BBCBASIC: Windows: CGI: Link: Can you give an overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/43627/fid/768

----------------------------------------------------------------------