設為首頁收藏本站

 取回密碼
 註冊
搜尋
熱搜: Redump discuz
檢視: 1901|回覆: 1

【轉貼】 PHP環境設定在NT 與 Windows 2000下

[複製連結]
發表於 2002年1月1日 12:37:05 | 顯示全部內容 |閱讀模式
1.將PHP應用程式建立一路徑 譬如C:/PHP4。
2.於IIS服務管理員,建虛擬目錄,如PHP (指向目錄C:/PHPTEST)。
3.開啟虛擬目錄PHP屬性設定方塊之虛擬目錄頁籤,按下設定按鈕,再按下新增按鈕。
4.於執行檔,輸入(瀏覽)路徑 (即C:/PHP4/PHP.exe)。
5.於副檔名,輸入欲加入的副檔名 ( .php或 .php3)。
6.按下確定,完成PHP環境設定。
7.開啟瀏覽器,執行Localhost/PHP,即可顯示資訊。

英文安裝說明
-------------------------------------------------
PHP 4.0 Release Candidate 1 - Win32 Distribution
================================================

Requirements
------------

- Windows 95 or later, Windows NT 4.0 or later
- ISAPI 4.0 compliant Web server required for ISAPI module (tested on IIS 4.0 and
PWS 4.0)
- Windows 95 requires the DCOM update, freely available from:
https://download.microsoft.com/msdownload/dcom/95/x86/en/dcom95.exe


Note: Release Candidate 1 of PHP 4.0 adds built-in support for connecting to
MySQL databases. Loading php_mysql.dll is no longer necessary, and thus,
php_mysql.dll is no longer distributed in the binary distribution of PHP 4.0.


Installation
------------

The Win32 version of PHP *requires* a php.ini file to be present. If you haven't
got a php.ini installed yet, copy the php.ini-dist file that is included in the
distribution to your Windows directory, and rename it to php.ini (e.g.,
C:WINNTphp.ini). Edit it and modify the values as you see fit.

Unlike PHP 3, PHP 4 is divided into several components; Even when you use
PHP in its CGI mode, php.exe is no longer a standalone executable, and relies
on external DLLs for execution. For this reason, if you install php.exe as
a handler for your web server, you must make sure that the DLLs in the
distribution exist in a directory that is in the Windows PATH. The easiest way
to do it is to copy these DLLs to your SYSTEM (Windows 9x) or SYSTEM32 (Windows NT)
directory, which is under your Windows directory.
The DLLs that need to be copied are MSVCRT.DLL (it may already exist in there) and
PHP4TS.DLL.

Installation Notes for IIS 4.0
------------------------------

- Install the php.ini file and the DLLs as mentioned above.
- Start the Microsoft Management Console (may appear as
'Internet Service Manager').
- Under 'ISAPI Filters', add a new ISAPI filter. Use 'PHP' as the filter name,
and supply a path to the php4isapi.dll that is included in the distribution.
- Under 'Home Directory', click on the 'Configuration' button. Add a new entry
to the Application Mappings; Use the path the php4isapi.dll as the Executable,
supply .php as the extension, leave 'Method exclusions', blank, and check
the Script engine checkbox.
- Stop IIS completely (you would have to stop the IIS Administration service for
that - stopping it through the Management Console isn't good enough; You can
do it by typing 'net stop iisadmin' on a command prompt).
- Start IIS again (you can do it by typing 'net start w3svc' on a command prompt).
- Put a .php file under your Web server's document root and check if it works!



Installation Notes for Microsoft PWS 4.0
----------------------------------------

- Install the php.ini file and the DLLs as mentioned above.
- Edit the enclosed PWS-php4.reg file to reflect the location of your
php4isapi.dll. Forward slashes should be escaped, for example:

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesw3svcparametersScript Map]
".php"="C:\Program Files\PHP\php4isapi.dll"

- In the PWS Manager, right click on a given directory you want to add PHP support
to, and select Properties. Check the 'Execute' checkbox, and confirm.

At this point, PWS should have built-in PHP support.

https://www.fishman.idv.tw/phpforum/thread-867-1-1.html
作者文章推薦
發表於 2002年10月17日 13:42:21 | 顯示全部內容
謝謝分享

我要回覆
懶得打字嗎?讓本助手協助你 【使用進階編輯器請點選右方進階模式】
您需要登入後才可以回覆 登入 | 註冊

本版積分規則

手機版|Archiver|漁家小舖

GMT+8, 2024年11月24日 08:23 , Processed in 0.198127 second(s), 19 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回覆 返回頂端 返回清單