1. Install ActivePerl from http://www.activestate.com/activeperl/. At this time, there is a link to version 5.10 for Windows (x86) on this page. This link downloads an MSI installer to your machine which you can run.That's it. After doing this, ActiveState Perl should run on IIS 7.
2. If you are running the 64 bit version of Windows 2008, ensure that your application pool is configured to run as 32 bit. Assuming that you will be using ActivePerl in the default application pool, these steps will do it:
3. Create a handler mapping that associates "*.pl" requests with ActiveState's perlex30.dll extension using the following steps:
- From the Windows 'Start' menu, pick run and type "inetmgr" (without the quotes). Click on 'OK".
- In the left hand pane of IIS Manager, open up the settings for your server. Click on "Application Pools".
- In the Application Pools page, select "DefaultAppPool".
- In the right hand pane, under "Edit Application Pool", click on "Advance Settings..."
- In the Advanced Settings dialog, ensure that "Enable 32-bit Applications" is set to "True".
4. In the left hand pane of IIS Manager, select your server. This will apply the following handler mappings on the entire server. If you would like to do this for just a specific site or application, you can open up the server and select any site or application. In the center pane, double click on the Handler Mappings icon.
5. When the Handler Mappings pane is displayed, click on the "Add Module Mapping..." item in the Actions pane on the right.
6. Fill out the Add Module Mapping dialog as follows:
7. Repeat the above steps for any additional file extensions you wish to be associated with Perl. On IIS 6, ActiveState Perl creates mappings for "*.pl", "*.plx" and "*.plex". Additionally, some applications are known to map "*.cgi" with Perl.
- For Request Path, enter "*.pl".
- For Module, select "IsapiModule" from the dropdown list. Note that the ISAPI module is a prerequisite. If it does not show up on this list, it will need to be installed an an IIS optional component.
- For Executable, enter "c:\perl\bin\PerlEx30.dll" (without the quotes.) Note that this assumes that you've installed ActiveState Perl using its default location. If you installed it in another location, you will need to look there for perlex30.dll.
- For Name, enter "ActiveState Perl for .pl". Note that this name is just a label and does not affect functionality. It does need to be unique, though. If you are going to be associating other file extensions with ActiveState Perl, the names for those mappings will need to be different.
- You do not need to do anything with the "Request Restrictions..." button. If you wish to limit this mapping to specific HTTP verbs, etc., it can be done there.
欢迎光临 建锋网络论坛 (http://forum.kensoft.com/) | Powered by Discuz! 6.0.0 |