xampp中apache點擊啟動失敗解決方法


錯誤提示:

9:15:53 AM  [Apache] Error: Apache shutdown unexpectedly.
9:15:53 AM  [Apache] This may be due to a blocked port, missing dependencies, 
9:15:53 AM  [Apache] improper privileges, a crash, or a shutdown by another method.
9:15:53 AM  [Apache] Press the Logs button to view error logs and check
9:15:53 AM  [Apache] the Windows Event Viewer for more clues
9:15:53 AM  [Apache] If you need more help, copy and post this
9:15:53 AM  [Apache] entire log window on the forums

 

解決方法:

1.80端口沖突,解決方法:

打開目錄C:\xampp\apache\conf(我的安裝目錄為C:\xampp)下的httpd.conf文件,將Listen 80和 ServerName localhost:80中的80改為8081或其它值(盡量不要使用0-1023端口,這個是系統保留端口),要保持一致。
2.監聽端口443沖突,解決方法:

打開目錄C:\xampp\apache\conf\extra (我的安裝目錄為C:\xampp)下的httpd-ssl.conf文件,將Listen 443這句注釋掉:# Listen 443或將443改為4433或其它值(盡量不要使用0-1023)。

再修改了以上兩個端口后,再次啟動apache,it works!

9:18:03 AM  [Apache] Problem detected!
9:18:03 AM  [Apache] Port 80 in use by "D:\Program Files\Skype\Phone\Skype.exe" with PID 4808!
9:18:03 AM  [Apache] Apache WILL NOT start without the configured ports free!
9:18:03 AM  [Apache] You need to uninstall/disable/reconfigure the blocking application
9:18:03 AM  [Apache] or reconfigure Apache and the Control Panel to listen on a different port
9:18:03 AM  [Apache] Problem detected!
9:18:03 AM  [Apache] Port 443 in use by "D:\Program Files\Skype\Phone\Skype.exe" with PID 4808!
9:18:03 AM  [Apache] Apache WILL NOT start without the configured ports free!
9:18:03 AM  [Apache] You need to uninstall/disable/reconfigure the blocking application
9:18:03 AM  [Apache] or reconfigure Apache and the Control Panel to listen on a different port
9:18:03 AM  [Apache] Attempting to start Apache app...
9:18:03 AM  [Apache] Status change detected: running


免責聲明!

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



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