Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How can I serve Perl CGI scripts on Win32?

by Ovid (Cardinal)
on Sep 05, 2000 at 21:05 UTC ( [id://31146]=note: print w/replies, xml ) Need Help??


in reply to How can I serve Perl CGI scripts on Win32?

You're talking about two different things. Perl is not CGI, nor is it a Web server. What you need is a Web server and Perl, two separate things.

I would get my version of Perl for Windows from ActiveState and then get a copy of Apache for Windows. It's easy to install, but you need to read through the docs for configuration information. Configuration is simple, though, if all you want is CGI.

Replies are listed 'Best First'.
RE: Answer: How can I serve Perl CGI scripts on Win32?
by jeorgen (Pilgrim) on Sep 06, 2000 at 20:43 UTC
    You can serve perl CGI scripts with IIS, just like you would on a unixish system. On unixish systems you have a shebang that tells what program should execute the perl script:
    #!/usr/bin/perl
    In IIS on windows you use the extension of the perl script (e.g. ".pl", or whatever you choose) to decide what program should execute the perl script. In IIS you can decide this on a per directory basis. Here is a quote from the ActivePerl documentation for Perl 5.005_03 (HTML docs: ActivePerl FAQ->Web Server Config):
    ".... From the tree display on the left, select the level at which to apply the mappings. You can choose an entire server, web site, or a given virtual directory.

    Select Properties from the Action menu.

    If you chose to administer the properties for the entire server, the Server Properties dialog will appear. Select WWW Service from the Master Properties pull-down menu and click the Edit button under Master Properties. This opens WWW Service Master Properties. Select the Home Directory tab and proceed to step 7.

    If you chose to administer the properties for an entire web site, the Web Site Properties sheet appears. Select the Home Directory tab and proceed to step 7.

    If you chose to administer the properties for a virtual directory, the Virtual Directory Properties sheet appears. Select the Virtual Directory tab and proceed to step 7.

    Click the Configuration button. This opens the Application Configuration dialog.

    Select the App Mappings tab and click the Add button. You see the Add/Edit Application Extension Mapping dialog.

    To run Perl as a CGI application, type the full path to Perl.EXE followed by %s %s. When a script is executed, the first %s will be replaced by the full path to the script, and the second %s will be replaced by the script parameters. ..."

    /jeorgen

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-19 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found