XAMPP中Apache因為端口原因不能啟動的解決方法


    在開啟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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM