?
Solved

Perl and NT: IIS

Posted on 1998-10-05
5
Medium Priority
?
211 Views
Last Modified: 2013-12-25
Has anyone had luck setting up Perl to work on NT with IIS?

I recently moved to Internet Information Server 4 on an NT Server 4.0 machine.  I'm trying to set up Perl so it'll work the same way it did on my old server, Netscape Enterprise.  I know it's possible for Perl to work right on NT, because Enterprise Server, which simply ran perl.exe when someone requested a .pl, never had any problems and never rejected scripts that contained certain syntax.  

I downloaded Perl for NT from ActiveState and set it up.  It uses a .dll instead of a .exe, which is fine except some scripts just don't work (for example, ones that use the "|| die" command).  Very simple scripts are fine, but more complex ones almost never work--the server just returns an error message to the browser.  I've tried directing the server to the same perl.exe I used with Enterprise, but in this case the browser just waits ("Host foo.bar.com contacted. Waiting for reply...") and eventually timeout.

Anyone know what I'm doing wrong?
0
Comment
Question by:oucher
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
faster earned 300 total points
ID: 1828931
You can use exe, but there are some config you need to do, including setting registry. Look at the perl FAQ: http://www.ActiveState.com/support/faqs/win32/perlwin32faq6.html
0
 
LVL 28

Expert Comment

by:sybe
ID: 1828932
It's better to use the dll, I did not get perl scripts to work that open & write to a file using exe. I did not find any other way then to install the dll.

The install of perl ISAPI does not set the registry right. You have to add "%s %s" after the path to the dll (it is somewhere in the scriptmap of the server).


0
 
LVL 7

Expert Comment

by:faster
ID: 1828933
open & write to file can be done using both exe and dll
0
 
LVL 28

Expert Comment

by:sybe
ID: 1828934
faster,

I know that that should be possible, but somehow IIS4 and Perl don't like each other very much. Anyway I had some trouble in getting that running using the exe, and I solved by using the dll.

I had a lot of trouble getting my perl scripts running again after upgrading from IIS3 to IIS4. Of course theoretically everything works fine, in practice there are however some problems.

0
 
LVL 7

Expert Comment

by:faster
ID: 1828935
Maybe your version has some problem, it is OK in my company
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
This article will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question