ActivePerl and IIS discussion

Discussions for setting up IIS to use ActivePerl.

PerlEx usability disclaimer

The PerlEx interpreter was written assuming a Perl 5.8.
The PerlEx documentation is written for IIS 5 and IIS 6.

Any combination other than the above should be considered "Experimental".

PerlEx is provided in the ActivePerl installers without support.
- Using PerlEx on Windows versions which are undocumented will require extensive manual intervention, if it is possible at all.
- Versions of ActivePerl beyond 5.8 and modules written for Perls beyond 5.8 are likely to include changes in Perl that are incompatible with PerlEx.

Perl and IIS 8.5 pathing issue

I have set up Perl 32 bit on IIS 8.5 (Windows Server 2012 R2; I have the same issue with 64 bit Perl). I have a Perl script that includes "use lib '/path';" statements to reference other Perl libraries contained within the web site. Notice that I am using forward slashes here. When I browse the script, I get the following error message: Can't locate in @INC (@INC contains: ).

CGI "Can't locate" error message

I have a client who's CGI scripts are throwing this error:

Can't locate /defines.pli in @INC (@INC contains: C/Perl64/site/lib C:/Perl64/lib .) at E:\wwwroot\ELS_Application\cgi-bin\ElectronicLicensing\RE\RECertification.cgi line 29.

Any suggestion on how to debug this?

The server is running Win2012/IIS8/ActivePerl5.22. defines.pli is in the same folder as the calling script, RECertification.cgi in this case.

These CGI scripts are running fine on another server with same setup. They also ran for years on a Win2003 server running ActivePerl 5.8.

Precompiler: Fatal Eval Error: Package:[PerlEx::Precompiler::c_::otrs::otrs::bin::cgi2dbin::index_pl]

Hello Everyone,

Good Morning

We are noting frequent 500 Internal server Error issue while working with the ticketing application. Following is the configuration we have used.

IIS version - 8.5
OTRS - 3.3.7
Perl - Active State Perl 5.16.1
OS - Windows 2012 R2

From last few days I went through following error and this occurs 2-3 times in day on each system. we have two system running with same configuration on load balancer.

Below is the perl logs and there is no error in otrs log for this corresponding issue.

cgi redirect does not pass through parameters on IIS

When I issue the following directive:
use CGI qw(:all);
use CGI::Session();
$app="this one";

$q = new CGI;
print $q->redirect(-uri=>"/cgi-bin/mmb_details.cgi?app=$app&userid=$userid&func=$func&title=Edit%20User",

The called cgi script does not get any of the arguments. It works fine under apache (the server it used to reside on) but doesn't work with IIS (Server 2012 R2, IIS version 8.5.9600 16384).

If I use a browser and pass in that URI it works fine. I can't figure out what setting in IIS I need to set to allow this to happen.

perl.exe is not a valid win32 application

-Installed ActivePerl- on a Windows Server 2008 R2 64bit machine.
-Using activeperl for awstats7.4(build 20150714) with iis7.5

After working as expected many times, with no updates or system changes, all of a sudden running the same command line script results in errors:

Popup - "C:\Perl\bin\perl.exe is not a valid win32 application"
Cmd - "Access is denied."

After searching but not finding much, an old posting hinted at something wrong with perl.exe
It turns out the file C:\perl\bin\perl.exe was corrupted and was showing 0 bytes.

502 error on new install

I have installed ActivePerl 32-bit on an IIS 8.5 server. I am trying to get a legacy perl application working. I setup the hander mappings for .pl and .cgi to go to c:\perl\bin\perl.exe "%s" %s as before. But everytime I try to run any perl script through the webserver I get a 502 error: A CGI application returns an HTTP response that is not valid to the server that is running IIS 7.0, IIS 7.5, or IIS 8.0.

I have been able to run the perl script from the command line. Any thoughts?

How to Call Powershell script with Active Perl in IIS 8 Windows 2012?

Dear Perl experts hi,

Does anyone of you know? How to call powershell script with Active Perl in Windows server 2012 IIS 8?

I only know one way with Soap::Transport module worked in Windows server 2003. but it is not working anymore in Windows Server 2012.

Appreciate your honest reply

PUT and DELETE method not supported on IIS server

I am running a simple website on a windows server, I suppose it is IIS server. The backend of the website is REST api implemented in PHP. However, when I send requests with PUT and DELETE as method, it just return 405 method unsupported. My web.config is like this:

<?xml version="1.0" encoding="UTF-8"?>
              <remove name="Main Rule"/>
                <rule name="Sub Rule" stopProcessing="true">
                    <match url=".*" />

Can't launch Komodo Perl Debugger from Browser through IIS7

I have tried to launch the Komodo Perl Debugger from Browser through IIS 7 to step through the script in Komodo. Perl script is executed correctly but nothing happen in the Komodo IDE even though the break point is set in the script. Has anybody gone through this exercise? Please help.