Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Cannot run Perl under IIS (Win2000 pro)

by Pingu (Sexton)
on Jul 16, 2001 at 18:19 UTC ( [id://97019]=perlquestion: print w/replies, xml ) Need Help??

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

Pingu is struggling again.

He has recently installed Windows 2000 pro on his home box to help in developing web-based bits and pieces but cannot get IIS to run Perl scripts.

If this is the wrong place to ask feel free to redirect me (preferably without too many flames) - However I've tried Micro$oft's website plus a nuber of google searches to no avail.

IIS is running, it's configured to associate .pl files with perl.exe and perl.exe seems to start up when I request a perl script through my browser (I checked the task list and it's there). But nothing happens, the browser sits there, it doesn't time out but I get no error message, no program output, zip. I've tried the most basic script:
use CGI qw(:standard); use strict; print header(); print start_html("Test"); print h1("This is a test"); print end_html();

I can run perl stuff from the command line just fine...

Any insight/help/instructions for posting this question in a more sensible forum/etc./etc. much appreciated.

Pingu
--- Everything in moderation, including moderation.

Replies are listed 'Best First'.
Re: Cannot run Perl under IIS (Win2000 pro)
by earthboundmisfit (Chaplain) on Jul 16, 2001 at 18:40 UTC
    After reinstalling as directed above, check to make sure that in the IIS configuration for .pl files that the executable path is something like
    C:\Perl\bin\Perl.exe %s %s  <-- important to have these two switches
      And for good measure, throw on a -T to

      C:\Perl\bin\Perl.exe -T %s %s

      On win32 systems, you can't do taint checking via the script. You'll get a "to late" message. If you want to have "selective" taint checking, then make a new extension like .plt and throw in the -T switch on that.

      Hope this helps..
      Rich

Re: Cannot run Perl under IIS (Win2000 pro)
by Maestro_007 (Hermit) on Jul 16, 2001 at 18:34 UTC
    Perl was installed first, right?

    I had the same problem the first time I installed IIS. On a whim, I re-installed ActiveState Perl, rebooted, and the problem was magically solved.

    It worked for me, I hope it helps!

    Update: Completely agree about the below advice, especially the %s switches. Thanks earthboundmisfit!

    MM

Re: Cannot run Perl under IIS (Win2000 pro)
by Pingu (Sexton) on Jul 16, 2001 at 19:26 UTC
    Pingu here.

    Once again, my sincere thanks to all who frequent the Monastery. Three pertinent replies in as many minutes... Interesting to know about the -T switch too. Perl Monks will receive a mention on the Stragglers website which is where my sripts will eventually live (once they are working properly).

    The Stragglers is my running club, based in London, UK. Most recent event was a running pub crawl: 7 miles, 7 pubs, 7 pints of beer... We are known locally as the drinking club with a running problem.

    Thanks monks,
    Pingu
    use SIG::AutoRotate; my $sig = SIG->new(); $sig->Generate();
Re: Cannot run Perl under IIS (Win2000 pro)
by aquacade (Scribe) on Jul 16, 2001 at 22:18 UTC

    I'm using ActiveState Perl 5.6.1 with NT Server 4.0 and IIS. This article helped me configure my IIS/NT Server, but the REAL trick is to use .plx as the CGI script extension running out of your c:\Inetpub\wwwroot\cgi-bin directory. Give it a try; hope this works for you too!

    Go see:  http://support.microsoft.com/support/kb/articles/Q150/6/29.asp

    aquacade

Re: Cannot run Perl under IIS (Win2000 pro)
by Pingu (Sexton) on Jul 17, 2001 at 15:50 UTC
    Have now reinstalled ActiveState Perl which has solved things. It even out in the %s %s for me though I had to add in the -Taint switch myself.

    I shall now seek wisdom in the ways of ODBC.... All that remains is to convince those who request scripts from me to stop asking for anything with the extension ".asp" and I'll be a happy penguin

    Pingu
    ---
    open (FP, ".sig") or croak("No .sig available"); print <FP>;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-25 14:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found