faqts : Computers : Internet : Web Servers : Tiny

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

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

Entry

Web Server: TinyWeb: CGI: How to run CGI programs?

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


----------------------------------------------------------------------
--- Knud van Eeden --- 15 January 2021 - 11:57 pm --------------------
Web Server: TinyWeb: CGI: How to run CGI programs?
===
Steps: Overview:
 1. -Download Tiny web server e.g. here
      http://jonripley.com/volatile/tinyweb.zip
 2. -Unzip (use e.g. Winzip, Winrar, pkzip for Windows, pkzipc.exe)
     this file in a directory (e.g. c:\temp)
     1. -E.g. Open an MSDOS box and type the following commands
          md c:\temp
          cd c:\temp
          pkzipc.exe -extract -dir tinyweb.zip
 3. -This will create a directory structure
--- cut here: begin --------------------------------------------------
dir c:\temp\tinyweb\
 Volume in drive C is unlabeled      Serial number is 6cbc:c01a
 Directory of  C:\temp\tinyweb\*
 1/15/2007  19:59         <DIR>    .
 1/15/2007  19:59         <DIR>    ..
 1/15/2007  19:56         <DIR>    html
 1/15/2007  19:56         <DIR>    licences
 1/15/2007  19:56         <DIR>    log
 1/15/2007  20:08             661  access_log
 1/15/2007  20:08             662  agent_log
 1/15/2007  19:59               0  error_log
 4/08/2020  16:37             663  ReadMe.txt
 1/15/2007  20:00             205  referer_log
 6/03/2021  19:20          58,880  TINY.EXE
 6/06/2021  23:39         476,672  tinybox.exe
        537,743 bytes in 7 files and 5 dirs    557,056 bytes allocated
  1,009,090,560 bytes free
dir c:\temp\tinyweb\ /s
 Volume in drive C is unlabeled      Serial number is 6cbc:c01a
 Directory of  C:\temp\tinyweb\*
 1/15/2007  19:59         <DIR>    .
 1/15/2007  19:59         <DIR>    ..
 1/15/2007  19:56         <DIR>    html
 1/15/2007  19:56         <DIR>    licences
 1/15/2007  19:56         <DIR>    log
 1/15/2007  20:08             661  access_log
 1/15/2007  20:08             662  agent_log
 1/15/2007  19:59               0  error_log
 4/08/2020  16:37             663  ReadMe.txt
 1/15/2007  20:00             205  referer_log
 6/03/2021  19:20          58,880  TINY.EXE
 6/06/2021  23:39         476,672  tinybox.exe
        537,743 bytes in 7 files and 5 dirs    557,056 bytes allocated
 Directory of  C:\temp\tinyweb\html\*
 1/15/2007  19:56         <DIR>    .
 1/15/2007  19:56         <DIR>    ..
 1/15/2007  19:56         <DIR>    cgi-bin
 1/15/2007  19:56         <DIR>    src
 4/08/2020  16:16             961  index.html
            961 bytes in 1 file and 4 dirs    4,096 bytes allocated
 Directory of  C:\temp\tinyweb\html\cgi-bin\*
 1/15/2007  19:56         <DIR>    .
 1/15/2007  19:56         <DIR>    ..
 4/08/2020  16:03               0  guest.txt
 4/08/2020  16:17          90,619  guestbook.exe
 4/07/2021  21:32          85,920  ListEnv.exe
        176,539 bytes in 3 files and 2 dirs    180,224 bytes allocated
    Total for:  C:\temp\tinyweb\html\cgi-bin\*
        176,539 bytes in 3 files and 2 dirs    180,224 bytes allocated
 Directory of  C:\temp\tinyweb\html\src\*
 1/15/2007  19:56         <DIR>    .
 1/15/2007  19:56         <DIR>    ..
 4/08/2020  16:16           5,595  guestbook.bbc
 4/07/2021  21:31             896  ListEnv.bbc
          6,491 bytes in 2 files and 2 dirs    12,288 bytes allocated
    Total for:  C:\temp\tinyweb\html\src\*
          6,491 bytes in 2 files and 2 dirs    12,288 bytes allocated
    Total for:  C:\temp\tinyweb\html\*
        183,991 bytes in 6 files and 8 dirs    196,608 bytes allocated
 Directory of  C:\temp\tinyweb\licences\*
 1/15/2007  19:56         <DIR>    .
 1/15/2007  19:56         <DIR>    ..
 1/15/2007  19:56         <DIR>    tinybox
 1/15/2007  19:56         <DIR>    tinyweb
              0 bytes in 0 files and 4 dirs
 Directory of  C:\temp\tinyweb\licences\tinybox\*
 1/15/2007  19:56         <DIR>    .
 1/15/2007  19:56         <DIR>    ..
 6/06/2021  23:12           1,298  licence.txt
 6/06/2021  23:45           6,732  readme.html
 6/06/2021  22:29           5,023  readme.txt
         13,053 bytes in 3 files and 2 dirs    20,480 bytes allocated
    Total for:  C:\temp\tinyweb\licences\tinybox\*
         13,053 bytes in 3 files and 2 dirs    20,480 bytes allocated
 Directory of  C:\temp\tinyweb\licences\tinyweb\*
 1/15/2007  19:56         <DIR>    .
 1/15/2007  19:56         <DIR>    ..
 6/02/2021  19:35              69  FILE_ID.DIZ
 6/02/2021  19:35           2,175  LICENCE.TXT
12/18/2003  14:30              60  README.TXT
          2,304 bytes in 3 files and 2 dirs    12,288 bytes allocated
    Total for:  C:\temp\tinyweb\licences\tinyweb\*
          2,304 bytes in 3 files and 2 dirs    12,288 bytes allocated
    Total for:  C:\temp\tinyweb\licences\*
         15,357 bytes in 6 files and 8 dirs    32,768 bytes allocated
 Directory of  C:\temp\tinyweb\log\*
 1/15/2007  19:56         <DIR>    .
 1/15/2007  19:56         <DIR>    ..
              0 bytes in 0 files and 2 dirs
    Total for:  C:\temp\tinyweb\log\*
              0 bytes in 0 files and 2 dirs    0 bytes allocated
    Total for:  C:\temp\tinyweb\*
        737,091 bytes in 19 files and 23 dirs    786,432 bytes 
allocated
--- cut here: end ----------------------------------------------------
 4. -Run the webserver
     1. -Supply as a parameter the path to the html directory
         in the directory you just unpacked)
         1. -Open an MSDOS box and type the following commands
        <path to your Web server>\tiny.exe <path to the html directory>
             1. -E.g.
                  c:\temp\tinyweb\tiny.exe c:\temp\tinyweb\html
 5. -Then open your browser, and type the URL
      http://localhost/cgi-bin/guestbook.exe
     -- or --
      http://127.0.0.1/cgi-bin/guestbook.exe
 6. -This should open a web page showing
--- cut here: begin --------------------------------------------------
View Guestbook
------------------------------------
The guestbook is empty.
------------------------------------
Sign guestbook
--- cut here: end ----------------------------------------------------
===
Tested successfully on
Microsoft Windows XP Professional (service pack 2),
running
Tiny web server v1.93
===
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
----------------------------------------------------------------------