IIS 7 & IIS 8
Configuration & Scripting
Host Perl on IIS 7 By CGI , windows serveice 2008 sp1 64x. Get result...
Last post Jul 16, 2011 06:21 PM by HCamper
May 31, 2011 03:00 AM|LINK
I have just installed activeperl for Windows service 2008 sp1 64x, and have installed/enabled all components for iis7 on it.
I have enable IIS CGI, and set the "script map"
1. Request path: *.pl
Executable: c:\Perl\bin\perl.exe "%s" %s
Name: Perl Script (PL)
Click Yes on the "enable ISAPI message"
2. Request path: *.cgi
Name: Perl Script (CGI)
Click Yes on the "enable ISAPI message
when i try to run any *.pl scripts, i keep on getting the "file save" dialogue from my ie...do you know what may be wrong? would really appreciate your help on this issue...i would be willing to elaborate further if required.
May 31, 2011 05:32 AM|LINK
I try it in windows 7 enterprise, with IIS 7.5
if I use localhost, the script work.
but when I use machineName in URL, the "file save" dialogue show again.
May 31, 2011 06:29 AM|LINK
Have you checked this
for perl install?
Question when you ran the Active State perl install did you say yes to create a Windows File Association?
If you created the Windows File Association re run the installer and un-select the File Association.
And check Wade guide for steps to create the handler and for perl you need a *.cgi and *.pl
mapping along with enable the execution of "cgi" which by default is disabled.
For your perl scripts and IIS Server make sure the first output is Content: "text/plain"; other wise
you will get gateway errors on execution.
Additionally you need to add the IUSR IIS_USERS permissions to the perl directories.
May 31, 2011 07:32 AM|LINK
Thanks for you response.
Let me check the link you just give to me.
May 31, 2011 08:07 AM|LINK
You can try mapping Isapimodule -> C:\Perl\bin\PerlEx30.dll
May 31, 2011 08:10 AM|LINK
I think the reason is I use the Perl 64
now Im trying to install the perl 32 5.12.3
May 31, 2011 08:23 AM|LINK
Yes, There are many problems with using Perl X64 versions it is better to use Perl X86.
May 31, 2011 08:42 AM|LINK
I follow the link what you send to me.
install the perl X86
at hendler mappings, I add the Module Mapping that "*.pl" mapping to "C:\Perl\bin\PerlEx30.dll"
and remove the script map that "*.pl" mapping to "C:\Perl\bin\Perl.exe "%s" %s"
I get 500.0
in detail it say "The authenticated user does not have permission to use this DLL."
but, I already add the IIS_IUSRS user to C:\Perl User
May 31, 2011 08:47 AM|LINK
by the way,
the perlex30.dll cannot add "%s" %s"
May 31, 2011 08:51 AM|LINK
it seems not just because 64bit activeperl.
after I install the activeperl.
add the perlex30.dll module mapping. the server return 500.0
and if I add perl.exe "%s" %s script mapping. the localhost work correct.
but if I use my machinename in url, will pop the download box