日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

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

發布時間:2023/11/27 生活经验 39 豆豆
生活随笔 收集整理的這篇文章主要介紹了 运行php能运行asp么,配置使web server即能运行asp又能运行PHP(不装Apache) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

配置使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)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。