簡體   English   中英

Windows上的XAMPP。 Apache意外關閉。 Apache無法啟動

[英]XAMPP on windows. Apache Shutdown Unexpectedly. Apache not starting

這是端口已被其他應用程序使用的常見問題。 但是我已經從使用端口80和443的skype中更正了該問題。但是我不確定還有什么應用程序會阻止apache的運行。

這是錯誤日志

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

我已經檢查了錯誤日志文件。 如果有人能向我解釋這個問題,那就太好了。 我是使用xampp的新手

[Mon Jan 11 15:41:31.711045 2016] [ssl:warn] [pid 6344:tid 768] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:33.542795 2016] [ssl:warn] [pid 6344:tid 768] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:37.708844 2016] [mpm_winnt:notice] [pid 6344:tid 768] AH00455: Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.15 configured -- resuming normal operations
[Mon Jan 11 15:41:37.709343 2016] [mpm_winnt:notice] [pid 6344:tid 768] AH00456: Apache Lounge VC11 Server built: Oct 13 2015 10:54:13
[Mon Jan 11 15:41:37.709343 2016] [core:notice] [pid 6344:tid 768] AH00094: Command line: 'D:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Mon Jan 11 15:41:37.963876 2016] [mpm_winnt:notice] [pid 6344:tid 768] AH00418: Parent: Created child process 5008
[Mon Jan 11 15:41:44.877326 2016] [ssl:warn] [pid 5008:tid 688] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:46.246564 2016] [ssl:warn] [pid 5008:tid 688] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:46.644423 2016] [mpm_winnt:notice] [pid 5008:tid 688] AH00354: Child: Starting 150 worker threads.

好吧,如果您閱讀了來自Apache的消息,則很明顯,您已嘗試激活SSL,並且所做的事情存在問題。

我認為來自XAMPP的錯誤消息的這一部分與a crash or a shutdown by another method.最相關a crash or a shutdown by another method.

假定您通過取消注釋httpd.conf Include conf/extra/httpd-ssl.conf這一行來做到這一點,然后再次將該行注釋掉,然后嘗試修復您的SSL配置。

如錯誤消息所建議,請查看Windows事件查看器。 Apache在那里寫日志文件。 有時,事件查看器中顯示的錯誤非常具有描述性,並且會在存在錯誤的配置文件中標識行號

RE您的評論:

我以前在系統上安裝過xamp。 我已刪除xampp的源文件夾並重新安裝了xampp

可能是因為您沒有卸載舊版本的XAMPP,但舊版本中的某些內容仍在您的系統中注冊,這就是造成這種奇怪情況的原因。

我會(正確地)卸載此XAMPP,然后檢查您是否仍然注冊了Apache和/或MYSQL服務,請使用服務管理單元進行查找。

如果它們仍然存在,則可以這樣刪除它們(sc delete):-

Start command window using "Run as Administrator"
sc delete MYSQL
sc delete Apache

確保已經備份了所有數據庫,盡管這樣做可能已經太晚了。

然后,您可以重新安裝要使用的XAMPP版本。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM