如何在win2k pro 的IIS中运行prel脚本?

iriscat 2001-09-17 05:19:06
如何在win2k pro 的IIS中运行prel脚本?
需要安装什么软件?
...全文
112 点赞 收藏 8
写回复
8 条回复
yourway 2002年03月01日
这个问题好像问过很多遍了。
其实,你只要安装了ActivePerl后,在安装目录中的html目录中就有一套文档,很好的。其中就包括如何在IIS中进行配置的文章。现摘抄出其中一段(时间紧、任务重,所以我就不翻译了,其实也不难):

如何配置IIS4.0及其更高的版本支持Perl。
How do I configure Microsoft IIS 4.0 to support ActivePerl?
Microsoft IIS 4.0 ships with Windows NT Server 5.0, and PWS 4.0 ships with Windows NT Workstation 5.0. Both IIS and PWS are available as part of the Microsoft Windows NT 4.0 Option Pack. You can find a link to the Option Pack at http://www.microsoft.com/iis/

To configure IIS or PWS 4.0 to run Perl scripts:

Open the IIS 4.0 Internet Service Manager. This will bring up the Microsoft Management Console with the Internet Service Manager snap-in selected.

From the tree display on the left, select the level at which to apply the mappings. You can choose an entire server, web site, or a given virtual directory.

Select Properties from the Action menu.

If you chose to administer the properties for the entire server, the Server Properties dialog will appear. Select WWW Service from the Master Properties pull-down menu and click the Edit button under Master Properties. This opens WWW Service Master Properties. Select the Home Directory tab and proceed to step 7.

If you chose to administer the properties for an entire web site, the Web Site Properties sheet appears. Select the Home Directory tab and proceed to step 7.

If you chose to administer the properties for a virtual directory, the Virtual Directory Properties sheet appears. Select the Virtual Directory tab and proceed to step 7.

Click the Configuration button. This opens the Application Configuration dialog.

Select the App Mappings tab and click the Add button. You see the Add/Edit Application Extension Mapping dialog.

To run Perl as a CGI application, type the full path to Perl.EXE followed by %s %s. When a script is executed, the first %s will be replaced by the full path to the script, and the second %s will be replaced by the script parameters.

To run Perl for ISAPI, type the full path to PerlIS.DLL. The %s %s is not required for ISAPI DLLs.

In the Extension field, type .pl or .plx (or whatever extension you want to use).

The application mapping is now complete. Click the OK button and click OK to dismiss any remaining dialogs/property sheets.

Close the IIS 4.0 Internet Service Manager.

Because IIS runs as a service (see What is a Windows NT service?), you need to take special steps to make sure that files and environment variables are available to it.


回复 点赞
iriscat 2002年02月28日
谢谢,怎么给分???
=_=

两年了我都不会,只给别人分了
回复 点赞
wilddragon 2001年09月24日
哈哈
回复 点赞
wilddragon 2001年09月24日
哈哈
回复 点赞
iamxxg 2001年09月22日
win2k pro是没有IIS的,你可以找一个ohttpd装上,在装activeperl就可以了
回复 点赞
wilddragon 2001年09月21日
支持支持
回复 点赞
xbx 2001年09月17日
安装active perl后,在IIS中配置ISAPI过滤器。使其支持扩展名.pl就行。
回复 点赞
netken 2001年09月17日
active perl
看看前面的帖子吧,都有的
精华区
回复 点赞
发动态
发帖子
CGI
创建于2007-09-28

1910

社区成员

4476

社区内容

Web 开发 CGI
社区公告
暂无公告