CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Web 开发 >  IIS

IIS如何配置使web server即能运行asp又能运行PHP(不装Apache)

楼主sxx123()2001-12-24 18:08:23 在 Web 开发 / IIS 提问

IIS如何配置使web   server即能运行asp又能运行PHP(不装Apache)? 问题点数:60、回复次数:5Top

1 楼ashchan(幻大灰 - ashchan.com)回复于 2001-12-24 18:30:24 得分 0

看php(WIN版)安装包里的说明就行了。我用的方式是先把几个DLL文件拷至WINNT\SYSTEM32下,然后在IIS里添加应用程序扩展。哎呀我表达能力不行,反正说明文件里有。  
  Top

2 楼sxx123()回复于 2001-12-27 09:39:36 得分 0

有谁知道吗?Top

3 楼zhouqiming(碰碰车)回复于 2001-12-27 09:43:43 得分 0

支持ASP不用多余的设置,只要按正确安装了IIS4或IIS5就可以了。安装PHP可以选择CGI或ISAPI方式,具体安装可以参照下面说明(摘自PHP安装包内文件install.txt)  
  Windows   NT/2000   and   IIS   4   or   newer   and   PWS   4   on   NT   Workstation   or   W2K   non   server   editions  
   
        To   install   PHP   on   an   NT/2000   Server   running   IIS   4   or   newer,  
        follow   these   instructions.   You   have   two   options   to   set   up  
        PHP,   using   the   CGI   binary   (php.exe)   or   with   the   ISAPI   module.  
   
        In   either   case,   you   need   to   start   the   Microsoft   Management  
        Console   (may   appear   as   'Internet   Services   Manager',   either  
        in   your   Windows   NT   4.0   Option   Pack   branch   or   the   Control  
        Panel=>Administrative   Tools   under   Windows   2000).   Then  
        right   click   on   your   Web   server   node   (this   will   most   probably  
        appear   as   'Default   Web   Server'),   and   select   'Properties'.  
   
        If   you   want   to   use   the   CGI   binary,   do   the   following:  
          Under   'Home   Directory',   'Virtual   Directory',   or  
          'Directory',   click   on   the   'Configuration'   button,  
          and   then   enter   the   App   Mappings   tab.  
   
          Click   Add,   and   in   the   Executable   box,   type:  
          c:\php\php.exe   (assuming   that   you   have   unzipped   PHP   in   c:\php\).  
   
          In   the   Extension   box,   type   the   file   name   extension   you   want  
          associated   with   PHP   scripts.   Leave   'Method   exclusions'  
          blank,   and   check   the   Script   engine   checkbox.   You   may   also  
          like   to   check   the   'check   that   file   exists'   box   -   for   a   small  
          performance   penalty,   IIS   (or   PWS)   will   check   that   the   script  
          file   exists   and   sort   out   authentication   before   firing   up   php.  
          This   means   that   you   will   get   sensible   404   style   error   messages  
          instead   of   cgi   errors   complaing   that   php   did   not   output   any   data.  
   
          You   must   repeat   from   'Click   Add...'   for   each   extension   you  
          want   associated   with   PHP   scripts.  
          (.php   is   recommended.   although   .phtml   and   .php3   may   be  
          required   for   legacy   applications.)  
   
          Set   up   the   appropriate   security.   (This   is   done   in   Internet  
          Service   Manager),   and   if   your   NT   Server   uses   NTFS   file   system,  
          add   execute   rights   for   I_USR_   to   the   directory   that   contains  
          php.exe  
   
        To   use   the   ISAPI   module,   do   the   following:  
   
          If   you   don't   want   to   perform   HTTP   Authentication   using   PHP,  
          you   can   (and   should)   skip   this   step.   Under   ISAPI   Filters,  
          add   a   new   ISAPI   filter.   Use   PHP   as   the   filter   name,   and  
          supply   a   path   to   the   php4isapi.dll.  
   
          Under   'Home   Directory',   click   on   the   'Configuration'   button.  
          Add   a   new   entry   to   the   Application   Mappings.   Use   the   path  
          to   the   php4isapi.dll   as   the   Executable,   supply   .php   as   the  
          extension,   leave   Method   exclusions   blank,   and   check   the  
          Script   engine   checkbox.  
   
          Stop   IIS   completely   (net   stop   iisadmin)  
          Start   IIS   again     (net   start   w3svc)  
  Top

4 楼php2002(php2002)回复于 2002-01-28 16:11:35 得分 60

agree   up   ,tryTop

5 楼windstar(windstar)回复于 2002-03-07 12:40:07 得分 0

先安装好phpforwin32版本,拷贝pnp.ini和phpsts.dll到系统目录下,然后在internet管理服务器中在网站属性页中配置在应用程序扩展名映射添加.php文件指向php安装目录下的sapi\php4isapi.dll,确定,然后ok!Top

相关问题

  • 在一台服务器上同时用IIS+ASP+ACCESS和Apache+PHP+MySQL,行吗?
  • 如何在Windows 2000上使IIS和Apache 都运行,使能同时运行ASP和PHP?
  • apache+asp
  • 谁能告诉我“ASP、PHP\Dreamewaver\JavaScript\CGI\IIS\Apache\XML\应用服务器”在网站开发中都扮演什么角色?
  • 如何用IIS跑ASP,用Apache的反向代理重写URL
  • php+asp
  • apache,tomcat,php,resin
  • 请问:基于IIS和APACHE的PHP有什么不同?
  • 有关php和iis以及apache的问题,我给80分
  • win2003下跑php用iis+isapi好还是apache好呢?

关键词

  • iis
  • php
  • 安装
  • 文件
  • cgi
  • nt
  • asp
  • server
  • 能运行
  • 说明

得分解答快速导航

  • 帖主:sxx123
  • php2002

相关链接

  • Web开发类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo