Solved

Perl and NT: IIS

Posted on 1998-10-05
5
209 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 100 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need some help with powershell script 5 64
Powershell Exchange mailboxsizes 3 55
Find Files older than 6 months and then ZIP the Files 4 37
Edit my bash script 16 42
In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

738 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