在開啟XAMPP的Apache時報出如下錯誤信息:
9:08:14 PM [Apache] Error: Apache shutdown unexpectedly.
9:08:14 PM [Apache] This may be due to a blocked port, missing dependencies,
9:08:14 PM [Apache] improper privileges, a crash, or a shutdown by another method.
9:08:14 PM [Apache] Press the Logs button to view error logs and check
9:08:14 PM [Apache] the Windows Event Viewer for more clues
9:08:14 PM [Apache] If you need more help, copy and post this
9:08:14 PM [Apache] entire log window on the forums
9:13:44 PM [Apache] Problem detected!
9:13:44 PM [Apache] Port 80 in use by "Unable to open process" with PID 4!
9:13:44 PM [Apache] Apache WILL NOT start without the configured ports free!
9:13:44 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
9:13:44 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
寓意為80端口被占用,只需用編輯器打開XAMPP安裝目錄中xampp\apache\conf下的httpd.conf,將58行Listen 80改為Listen 88,220行ServerName localhost:80改為ServerName localhost:88保存即可成功啟動(這里的XAMPP版本為v3.2.2)。
其它Apache不能正常啟動問題請見:http://blog.csdn.net/kunlong0909/article/details/7716715