在IIS6中配置Perl/CGI支持 |
2004-11-4 15:05:17 阅读110次 |
首先,检查系统环境配置: 操作系统:WIndows Server 2003 Datacenter / Enterprise / Standard / Webserver 组件配置:IIS6.0 (确认在控制面板中安装了Add/Remove windows components -> Application -> IIS) 操作权限:本地管理员 (Local Administrator) 第3方支持:安装 ActiveState ActivePerl 至 C:/Perl (ActiveState ActivePerl 可以在 http://www.activestate.com 下载) 配置IIS: 通过以下任何一种方式运行IIS管理器: 1. Start -> Administrative Tools -> IIS Manager 2. Start -> Run -> %SystemRoot%/system32/inetsrv/iis.msc (%SystemRoot%为操作系统所在目录,如: C:/Windows) 点击Service Extensions,在主窗口左侧的 Add a new Web service extension... 上点击添加新的服务扩展,如下图: ![]() New Web Service Extension 对话框中, 在 Extension Name 中输入自定义的标识, 如: CGI Ext, 在Required Files 中单击Add, 输入 C:/Perl/bin/perl.exe "%s" %s ,并确定下面的"Set status to allowed" 选项被选中: ![]() 在默认的IIS发布目录 c:/inetpub (如果操作系统安装在其他分区, 此目录可能不同,如: d:/inetpub) 中建立 cgi-bin 子目录; 在Default Web Site 中建立一个虚拟目录,目录指向 C:/Inetpub/cgi-bin , 并在目录权限中如下图设置: ![]() 打开cgi-bin虚拟目录的properties,在 Application Configuration 确认 .pl 扩展已经被正确的映射: ![]() 脚本配置: 建议修改所有的 .cgi 脚本为 .pl 在脚本文件中将: #!/usr/bin/perl 改为 #!c:/perl/bin/perl.exe 任何/home/user 改为 c:/home/user 或 c://home//user 完成以上配置后,你的 perl 脚本将可以在 IIS 6 上运行。 |
在IIS6中配置php(CGI)支持 | |||
2004-11-4 15:14:37 阅读129次 | |||
在 Windows Server 2003 中安装 php 4 时, 如果使用php4.x的二进制安装程序, 在安装过程的最后设置IIS扩展的一步会出现某一个OCX找不到而发生的错误, 导致IIS6中无法正确配置 php (当然, 用zip包手工安装的不存在此一说)。 以下介绍IIS6 中手工设置php扩展的方法。
|