Solved

Perl and NT: IIS

Posted on 1998-10-05
5
202 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
  • 3
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
faster earned 100 total points
Comment Utility
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
Comment Utility
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
Comment Utility
open & write to file can be done using both exe and dll
0
 
LVL 28

Expert Comment

by:sybe
Comment Utility
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
Comment Utility
Maybe your version has some problem, it is OK in my company
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now