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

Windows 7 安裝 WAMP 搭建 PHP 開發環境圖文教學

編輯:關於 Windows
 

雖然 Linux 是 PHP 部署的首選,但在 Windows 7 上透過 WAMP(Windows + Apache + MySQL + PHP)同樣能快速建立開發環境。本文以 WAMP 為例說明安裝與常見問題排解。

安裝步驟

  1. 至 WAMP 官網下載安裝檔(不一定要最新版,視專案相容性選擇)。
  2. 安裝過程中選擇瀏覽器時,指向系統預設瀏覽器路徑(如 C:\Windows\explorer.exe)。
  3. SMTP 設定可保留預設值。

常見問題:WAMP 圖示呈橘黃色、顯示「Server Offline」

通常是因為 IIS 佔用了 80 埠。解決方法:

  1. Win+R 輸入 inetmgr 開啟 IIS 管理員。
  2. 右鍵「網站」→ 選擇「停止」。
  3. 回到工作列 WAMP 圖示,右鍵選擇「Restart All Services」。

重啟後 WAMP 圖示應轉為綠色,localhost 即可正常開啟。

Copyright © Windows教程網 All Rights Reserved