簡體   English   中英

Xampp Apache 無法啟動 - 端口 80 是免費的 - 日志中沒有錯誤

[英]Xampp Apache won't start - port 80 is free - no error in logs

我現在在 Windows 8 上使用 xampp 有一段時間了,它運行良好,直到我今天嘗試重新啟動 apache。 重新啟動時出現此消息:

17:54:35  [Apache]  Error: Apache shutdown unexpectedly.
17:54:35  [Apache]  This may be due to a blocked port, missing dependencies, 
17:54:35  [Apache]  improper privileges, a crash, or a shutdown by another method.
17:54:35  [Apache]  Check the "/xampp/apache/logs/error.log" file
17:54:35  [Apache]  and the Windows Event Viewer for more clues

很久以前我已經禁用了使用端口 80 的服務,並且沒有軟件在使用它。 我已經用 netstat 命令檢查過。 我嘗試將端口更改為 8080,但問題仍然存在。 所以我不認為這是端口問題。

我的 apache error.log 和 Windows 事件查看器中沒有任何錯誤消息。

我已經嘗試過但不起作用的一些事情:

  • 以管理員權限啟動 xampp 控制面板,
  • 安裝 apache 作為服務,
  • 重新啟動我的電腦,
  • 在我的 httpd.conf 上添加了這一行: LoadModule socache_shmcb_module modules/mod_socache_shmcb.so並在 httpd-ssl.conf 中取消注釋這一行: SSLSessionCache "shmcb:logs/ssl.scache(512000)"

我現在不知道該怎么辦。 請幫我。 謝謝大家。

在 Windows 中停用 IIS,然后以管理員身份運行 Xammp

檢查你的windows防火牆是否開啟。 使用 windows 運行框中的 firewall.cpl。 如果打開,則檢查是否允許 Apache Http 服務器(在私有/公共模式下)。 如果不允許。 如果問題未解決,請檢查 xampp/apache/conf 目錄中的 httpd.conf 文件。 檢查第 47 行中的服務器端口和第 35 行中的 serverroot 目錄。確保您對該路徑具有完全訪問權限。

也許您應該在 Windows 中停用 IIS,因為有時它會在不顯示任何錯誤的情況下靜默阻止端口 80。 轉到您的 Windows 控制面板和程序和功能,單擊打開和關閉 WINdows 功能並將復選框設置為關閉!

暫無
暫無

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

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