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 OK
Click Yes on the "enable ISAPI message"
2. Request path: *.cgi
Executable: c:\Perl\bin\perl.exe "%s" %s
Name: Perl Script (CGI)
Click OK
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.
felixz
21 Posts
Host Perl on IIS 7 By CGI , windows serveice 2008 sp1 64x. Get result not expected.
May 31, 2011 03:00 AM|LINK
Hi all
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 OK
Click Yes on the "enable ISAPI message"
2. Request path: *.cgi
Executable: c:\Perl\bin\perl.exe "%s" %s
Name: Perl Script (CGI)
Click OK
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.
thx,
#CGI #windows 2008 #IIS #64bit
felixz
21 Posts
Re: Host Perl on IIS 7 By CGI , windows serveice 2008 sp1 64x. Get result not expected.
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.
HCamper
8048 Posts
Re: Host Perl on IIS 7 By CGI , windows serveice 2008 sp1 64x. Get result not expected.
May 31, 2011 06:29 AM|LINK
Hello
Have you checked this http://blogs.iis.net/wadeh/archive/2009/04/13/running-perl-on-iis-7.aspx guide
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.
Martin
Community Member Award 2011
felixz
21 Posts
Re: Host Perl on IIS 7 By CGI , windows serveice 2008 sp1 64x. Get result not expected.
May 31, 2011 07:32 AM|LINK
Thanks for you response.
Let me check the link you just give to me.
kctt
654 Posts
Re: Host Perl on IIS 7 By CGI , windows serveice 2008 sp1 64x. Get result not expected.
May 31, 2011 08:07 AM|LINK
You can try mapping Isapimodule -> C:\Perl\bin\PerlEx30.dll
felixz
21 Posts
Re: Host Perl on IIS 7 By CGI , windows serveice 2008 sp1 64x. Get result not expected.
May 31, 2011 08:10 AM|LINK
Thanks Kctt,
I think the reason is I use the Perl 64
now Im trying to install the perl 32 5.12.3
HCamper
8048 Posts
Re: Host Perl on IIS 7 By CGI , windows serveice 2008 sp1 64x. Get result not expected.
May 31, 2011 08:23 AM|LINK
Hello,
Yes, There are many problems with using Perl X64 versions it is better to use Perl X86.
Martin
Community Member Award 2011
felixz
21 Posts
Re: Host Perl on IIS 7 By CGI , windows serveice 2008 sp1 64x. Get result not expected.
May 31, 2011 08:42 AM|LINK
Hi Martin,
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
felixz
21 Posts
Re: Host Perl on IIS 7 By CGI , windows serveice 2008 sp1 64x. Get result not expected.
May 31, 2011 08:47 AM|LINK
by the way,
the perlex30.dll cannot add "%s" %s"
felixz
21 Posts
Re: Host Perl on IIS 7 By CGI , windows serveice 2008 sp1 64x. Get result not expected.
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