執行安裝程式,預設安裝路徑 C:\Apache 或 C:\Program Files\Apache Group,安裝為服務並設為自動啟動。安裝完成後在瀏覽器輸入 https://localhost 應見 "It works!"。
執行 MSI 安裝程式,選「Typical」或「Custom」,設定 root 密碼(例:123456),完成後在服務中確認 MySQL 服務已啟動。
C:\PHPphp.ini-development 複製為 php.ini,編輯關鍵設定:extension_dir = "C:\PHP\ext"extension=mysqli、extension=pdo_mysql、extension=gd、extension=mbstring 等date.timezone = "Asia/Taipei"httpd.conf:LoadModule php_module "C:\PHP\php8apache2_4.dll"(視版本調整)AddHandler application/x-httpd-php .phpPHPIniDir "C:\PHP"DirectoryIndex index.php index.htmlphpmyadmin 資料夾libraries/config.default.php 複製為根目錄 config.inc.phpconfig.inc.php 核心參數:$cfg['blowfish_secret'] = '任意長字串'; (不可為空,用於 Cookie 加密)$cfg['Servers'][$i]['auth_type'] = 'cookie'; (建議 cookie 模式,較安全)$cfg['PmaAbsoluteUri'] = 'https://localhost/phpmyadmin/';$cfg['DefaultLang'] = 'zh-gb2312';$cfg['DefaultCharset'] = 'gb2312';auth_type = 'config' 必須同步設定:$cfg['Servers'][$i]['user'] = 'root';$cfg['Servers'][$i]['password'] = '123456';https://localhost/phpmyadmin/,輸入 root/密碼登入blowfish_secret 為空,依上方設定填入即可Listen 8080)手動部署雖繁瑣,但能完整掌控每個細節,為後續除錯打下堅實基礎。建議將配置檔備份,便於遷移或重建環境。