Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows Server 系統教學 >> Server 2008

Server Core 部署 IIS 7 + PHP FastCGI + MySQL 完整實戰手冊

編輯:Server 2008

作者在 Server Core (WS08WebCore) 上從零建置 PHP/MySQL 部落格平台,完整記錄無 GUI 環境下的指令操作流程,展現 Core 版輕量、高效、低 TCO 優勢。

目標架構

  • Windows Server 2008 Web Edition Server Core
  • IIS 7 + PHP FastCGI + MySQL

關鍵指令工具

netsh (網路)、scregedit.wsf (註冊)、pkgmgr/ocsetup/oclist (角色功能)、appcmd (IIS 管理)。

核心步驟概覽

  1. 修改電腦名稱、設定靜態 IP、啟用遠端桌面與防火牆例外。
  2. 啟用自動更新。
  3. ocsetup IIS-WebServerRole 安裝 IIS 7 核心角色。
  4. ocsetup IIS-CGI 支援 FastCGI。
  5. 手動部署 PHP (解壓縮、配置 php.ini、註冊 FastCGI 處理常式)。
  6. 安裝 MySQL (無訊息模式、設定服務、防火牆開放 3306)。
  7. 驗證 PHP 探釈頁面、建立資料庫、部署部落格程式。

新加坡 StreetDirectory 實測效能數據

實測亮點

新加坡 StreetDirectory 實測:IIS 7 + FastCGI 執行 PHP 效率較原生 LAMP 環境 高出 130% (未經調校)。Core 版減少磁碟佔用、攻擊面、授權成本,大幅降低 TCO。

後續章節將逐步拆解各階段指令細節與疑難排解。

Copyright © Windows教程網 All Rights Reserved