C:\ 根目錄,避免後續配置路徑麻煩。https://localhost/ 或 https://127.0.0.1 驗證,服務列表中可見 Apache。DocumentRoot:指定網站根目錄,末尾不加斜槓。DirectoryIndex:添加 index.php index.php3 index.php4 index.cgi index.pl index.asp,項目間以空格分隔。Port:未裝 IIS 保持 80,否則改為 81 或修改 IIS 端口。#BindAddress * → BindAddress 127.0.0.1。C:\php4(勿更改路徑)。msvcrt.dll 複製到 C:\WINNT\system32(提示覆蓋選是)。php.ini-dist 改名為 php.ini 複製至 C:\WINNT。httpd.conf 追加:
ScriptAlias /php4/ "C:/php4/"
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3
AddType application/x-httpd-php4 .php4
Action application/x-httpd-php4 "/php4/php.exe"
DirectoryIndex index.php index.php3 index.php4
php.ini:
extension_dir = C:\php4
extension=php_mysql.dll
extension=php_gd2.dll
extension=php_mbstring.dll
; 其他按需開啟
DocumentRoot 建立 test.php 驗證 。httpd.conf 路徑 → 自動配置。test.asp:<% Response.Write("Hello World!") %>。C:\resin-ee-2.1.4。C:\resin-ee-2.1.4\bin\httpd.exe -install。resin_home=C:\resin-ee-2.1.4。JAVA_HOME 與 PATH。.jsp 頁面驗證。至此,單台 Windows 服務器同時支持 PHP、ASP、JSP,滿足多語言共存需求。生產環境請進一步優化安全、性能與監控配置。