Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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 ( [id://37873]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

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.

Originally posted as a Categorized Question.

Replies are listed 'Best First'.
Re: How do i enable my win98 system to run/test CGI scripts that i've written ?
by little (Curate) on Oct 23, 2000 at 11:59 UTC
    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
Re: How do i enable my win98 system to run/test CGI scripts that i've written ?
by vrempire (Sexton) on Oct 23, 2000 at 12:17 UTC
    <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
    http://support.microsoft.com/
    http://www.discusware.com/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://37873]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-28 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found