xampp 啟動apache 提示:Error: Apache shutdown unexpectedly.
無法啟動xampp的apache提示錯誤:
下午 8:32:21 [Apache] Error: Apache shutdown unexpectedly.
下午 8:32:21 [Apache] This may be due to a blocked port, missing dependencies,
下午 8:32:21 [Apache] improper privileges, a crash, or a shutdown by another method.
下午 8:32:21 [Apache] Press the Logs button to view error logs and check
下午 8:32:21 [Apache] the Windows Event Viewer for more clues
下午 8:32:21 [Apache] If you need more help, copy and post this
下午 8:32:21 [Apache] entire log window on the forums
進入dos下啟動,D:\share tools\xampp\apache\bin>httpd.exe,發現提示配置檔案的錯誤如下:
可能是是因為存放的目錄名(share tools)中間有空格,導致無法有效訪問配置檔案。
解決方法:
將xampp移動到D盤目錄下,再次啟動。依然報錯同樣的錯誤,再次進入dos下啟動,提示資訊如下:
提示內容,很明顯ssl埠443被暫用。
驗證443埠是否真的被佔用:
netstat –ano | findstr 443
查詢結果如下:
可以看到443埠果然被佔用,接下來就好辦了,只要修改httpd-ssl.conf中的Listen 443埠號,儲存重新啟動即可。
httpd-ssl.conf配置檔案的存放路徑:
D:\xampp\apache\conf\extra
重啟啟動apache,就可以啟動成功,如下: