Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

How do i enable my win98 system to run/test CGI scripts that i've written ?

by Anonymous Monk
on Oct 23, 2000 at 10:56 UTC ( #37873=categorized question: print w/replies, xml ) Need Help??
Contributed by Anonymous Monk on Oct 23, 2000 at 10:56 UTC
Q&A  > CGI programming


How do i enable my win98 system to run/test CGI scripts that i've written so that i don't have to login to my shell to test my scripts? Moreover, i'm using a dialup and it's expensive to stay online to test when it takes very long periods.

Answer: How do i enable my win98 system to run/test CGI scripts that i've written ?
contributed by little

  1. You need to have a webserver installed, such as e.g. Apache for windows or Xitami or MS Personal Webserver (is on your Win98 CD) or MS IIS,
  2. You need to have Perl installed, best for Windows is Active State's Active Perl,
  3. You must assign all files with endings *.pl and *.cgi to be passed to perl in the server config (see the docs)
  4. You need a webbrowser to call the server at your localhost with the URL of your script
  5. alternatively when using for example Ultraedit you can create a shortcut in the extras_menu with tools_configuration to execute the scripts by passing them to the shell and returning the output from the script in a Ultraedit Window, but read the docs for Ultraedit before, to make it corecctly
Answer: How do i enable my win98 system to run/test CGI scripts that i've written ?
contributed by vrempire

<html><head><title></title></head> <body> Well, to test my cgi script, i done it by using the Personal Web Server 98.
First, you need to get the Windows 98 cd and find the setup file to install the PWS 98 into your local PC.
If you use Windows 95, you can get it free by downloading the PWS 95 from the Internet.
After you have install the PWS 98 inside your PC,then you can see that inside the directory which you install the PWS 98, for example C drive,
there will be a directory named 'localhost'.
The localhost folder is some sort like the remote server where you placed all your files, html and cgi that you want to publish on the net.
Inside the 'localhost' folder, you can see the 'wwwroot' folder and 'cgi-bin' folder.
'wwwroot' is used to put the html or htm files in it, whilst 'cgi-bin' folder is used to put the cgi and perl files in it.
Now, you need to configure the path from the 'cgi-bin' folder to the Perl program inside your PC.
For this, you need to have the Perl program inside the PC such as the ActiveState Perl from Active State website
To configure the path, you need to open the regedit from Start-->Run-->Regedit
Here is the url for you to do the step-by-step instruction on how to use the Perl with PWS

Please (register and) log in if you wish to add an answer

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (7)
    As of 2020-08-14 09:08 GMT
    Find Nodes?
      Voting Booth?
      Which rocket would you take to Mars?

      Results (75 votes). Check out past polls.