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

时间:2006/7/19 13:36:01

作者:佚名

人气:57

支持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)

运行php能运行asp么,配置使web server即能运行asp又能运行PHP(不装Apache)相关推荐

  1. 如何手动运行ASP.NET 2.0 Development Server

    这里简单介绍一下两种方法,但都是通过运行C:\Windows\Microsoft.NET\Framework\v2.0.50727\Webdev.WebServer.exe实现的 第一个就是命令行方法 ...

  2. ASP.NET 配置概览

    使用 ASP.NET 配置系统可以配置服务器上的任何 ASP.NET 应用程序,甚至是单独的页面或应用程序子目录.可配置的内容包括有:授权模式,页面缓存,编译器选项,自定义错误,调试和跟选项,以及更多 ...

  3. server接收dtu透传代码_深入ASP.NET Core源代码之 - Web Server Kestrel

    测试代码运行环境: OS:Ubuntu 18.04 64bit .NET Core SDK Version: 3.1.101 源代码版本:release/3.1 Kestrel的本质 - Web Se ...

  4. ASP入门(十三)-Server对象

    Server 对象用于处理服务器上的一些特殊任务,例如,创建组件实例.获取文件路径.执行ASP脚本文件等. Server 对象是体现 ASP 强大功能的一个对象,之前介绍的对象都是针对获取.请求以及简 ...

  5. 《圣殿祭司的ASP.NET4.0专家技术手册》----1-1 ASP.NET平台的三分天下

    本节书摘来自异步社区<圣殿祭司的ASP.NET4.0专家技术手册>一书中的第1章,第1节,作者: 奚江华,译者: 武海军 , 更多章节内容可以访问云栖社区"异步社区"公 ...

  6. Mercurial hg web server的配置

    在windows下安装tortoisehg-1.0.3-hg-1.5.3-x64.exe的版本控制工具后,克隆建立中心库后,启动web server,其他分库可以连接中心库进行pull但无法push. ...

  7. win2003 iis上运行asp.net配置

    在IIS上的进行如下设置: 1.Web 服务扩展中的"active server pages"启用 2.Web 服务扩展中的"ASP.NET v2.0.50727&quo ...

  8. c# .netframwork 4.0 调用 2.0时报错 混合模式程序集是针对“v2.0.50727”版的运行时生成的,在没有配置其他信息的情况下,无法在 4.0 运行时中加载该程序集。...

    "System.IO.FileLoadException"类型的未经处理的异常在 XXX.dll 中发生 其他信息: 混合模式程序集是针对"v2.0.50727" ...

  9. Ubuntu下QT控制台程序无法运行的解决方案以及XTerm的配置方法

    Ubuntu下QT控制台程序无法运行的解决方案以及XTerm的配置方法 最近由于老师要求要在Ubuntu下QT上进程多线程服务器的开发,虽然只是单纯的调用qt的network模块,但是为了避免麻烦,我 ...

最新文章

  1. Kafka如何基于CopyOnWrite实现线程安全的Deque构建
  2. 2019年终总结一下吧
  3. DataGridView中获取与设置当前选中行以及SelectedRows和CurrentRow注意区分
  4. 转:Python Shell 清屏方法
  5. 【php学习笔记】ticks篇
  6. 牛客题霸 [分糖果问题] C++题解/答案
  7. 计算机操作员高级工试题一,计算机操作员高级工操作题复习资料
  8. 亚信安全认证acse_重装出发 | 2019亚信安全合作伙伴大会珠海站召开
  9. Linux关机和重启命令
  10. 1.5 案例:多项式曲线拟合的比较
  11. js实现轮播图背景色随之渐变的效果(小程序版)
  12. 富士通Fujitsu DPK8510E 打印机驱动
  13. Rational Rose—概述
  14. robotium android,android自动化测试框架robotium配置和使用
  15. 树莓派开机自动运行python程序的方法
  16. 《The Selfish Giant》
  17. 2020会考计算机成绩查询,2020会考成绩官网查询入口
  18. 简单的一种图像冷暖色温转换(MATLAB)
  19. 防止表单重复提交的解决方案
  20. 了解前端(html,css)

热门文章

  1. redis 双写一致性 看一篇成高手系列1
  2. TVM性能评估分析(二)
  3. TensorFlow用法
  4. MindSpore整体架构介绍
  5. MinkowskiEngine基准测试
  6. 深度学习调参体验(一)
  7. 2021年大数据Flink(三十八):​​​​​​​Table与SQL ​​​​​​案例五 FlinkSQL整合Hive
  8. [JAVA EE] JPA技术基础:完成数据列表显示
  9. INSTALL_FAILED_INVALID_APK
  10. 解决sql2014的distribution系统库distribution.mdf过大问题