• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: 小 中 大 | 推荐给好友 上一篇 | 下一篇

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

发布: 2007-6-30 18:56 | 作者: admin | 来源: | 查看: 17次 | 进入软件测试论坛讨论

领测软件测试网 支持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)

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:[email protected] 电话:010-51297073

软件测试 | 领测国际 | ISTQB | ISTQB官网 | TMMi | TMMi认证 | 国际软件测试工程师认证 | 领测软件测试网