XAMPP 無法啟用 解決辦法
下述訊息顯示 Port80 被佔用 當然可以透過改 Port的方式啟用 但是這邊不寫
這邊先紀錄要關哪些東西 我寫成批次檔 直接一口氣關閉即可
下午 09:31:18 [Apache] Problem detected!
下午 09:31:18 [Apache] Port 80 in use by "Unable to open process" with PID 4!
下午 09:31:18 [Apache] Apache WILL NOT start without the configured ports free!
下午 09:31:18 [Apache] You need to uninstall/disable/reconfigure the blocking application
下午 09:31:18 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
主要原因:process id 4 "NT Kernel & System"
process id 4有可能是以下幾種服務導致的:
- IIS
- SQL Server Reporting services
- Web Deployment Agent Service
- World Wide Web Publishing service
將上述影響的程式寫成批次檔關閉即可
1 2 3 4 5 6 |
@echo off echo 還原影響XAPMM開啟的相關服務(Port 80) net start ReportServer$SQLEXPRESS echo. echo 還原完成,按任意鍵退出 & pause exit |
1 2 3 4 5 6 |
@echo off echo 關閉影響XAPMM開啟的相關服務(Port 80) net stop ReportServer$SQLEXPRESS echo. echo 關閉完成,按任意鍵退出 & pause exit |
除此之外如果電腦開機自動執行 Skype 也會導致 Port 80 in use by "Unable to open process" with PID 4!
此時只要關閉 Skype後 再開起 XAMPP相關服務即可 最後再開 Skype仍然可以正常使用
相逢就是有緣,留下足跡吧!