How can I enable IIS to run Perl scripts?
Posted
by
eidylon
on Server Fault
See other posts from Server Fault
or by eidylon
Published on 2010-12-17T19:25:14Z
Indexed on
2014/05/30
15:34 UTC
Read the original article
Hit count: 271
we're trying to get awstats up and running on our IIS6 server. awstats is running fine and generating output and all that jazz... no problem there.
When trying to change the selected month/year in the output page though, it is trying to run awstats.pl
through IIS, and coming up with a 404 error. To debug I made a simple hello.pl
in my root, and tried to run that, also 404s.
I followed the directions on this page http://support.microsoft.com/kb/245225 regarding installing ActiveState Perl and then configuring IIS. I added the extension mapping on my directory and registered the web services extension as directed.
The perl scripts all run fine and output if run from the command line, so I know perl is good, but I can't get IIS to find the files.
Here is the configuration on my the home directory tab of my site:
Here is the configuration of my web service extension:
I turned on directory browsing for this site, and when i get the listing of the directory, IIS actually does show the .pl
files being in the directory. But if I click on one of them, I get the 404 error.
12/17 15:22 > Also tried adding .pl as a mime-type on my site's configuration. This did not help.
12/17 16:57 > Also tried Everyone Read/Execute permissions on both the Perl direcory and the directory housing awstats. This did not help.
© Server Fault or respective owner