【问题标题】:Error starting up Apache services from Xampp从 Xampp 启动 Apache 服务时出错
【发布时间】:2014-02-20 14:59:26
【问题描述】:

在我的笔记本电脑上安装新版本的 Xampp 后,我收到以下错误:

控制面板中的错误日志:

9:24:26 AM  [Apache]    Problem detected!
9:24:26 AM  [Apache]    Port 80 in use by "Unable to open process" with PID 4!
9:24:26 AM  [Apache]    Apache WILL NOT start without the configured ports free!
9:24:26 AM  [Apache]    You need to uninstall/disable/reconfigure the blocking application
9:24:26 AM  [Apache]    or reconfigure Apache and the Control Panel to listen on a different port
9:24:26 AM  [Apache]    Attempting to start Apache app...
9:24:26 AM  [Apache]    Status change detected: running
9:24:27 AM  [Apache]    Status change detected: stopped
9:24:27 AM  [Apache]    Error: Apache shutdown unexpectedly.
9:24:27 AM  [Apache]    This may be due to a blocked port, missing dependencies, 
9:24:27 AM  [Apache]    improper privileges, a crash, or a shutdown by another method.
9:24:27 AM  [Apache]    Press the Logs button to view error logs and check
9:24:27 AM  [Apache]    the Windows Event Viewer for more clues
9:24:27 AM  [Apache]    If you need more help, copy and post this
9:24:27 AM  [Apache]    entire log window on the forums

Netstat 的输出

  TCP    0.0.0.0:80             MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:135            MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:445            MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:8000           MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:8883           MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:12680          MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:49152          MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:49153          MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:49154          MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:49155          MW70VRC49LC8OO:0       LISTENING
  TCP    0.0.0.0:49158          MW70VRC49LC8OO:0       LISTENING
  TCP    10.23.121.46:139       MW70VRC49LC8OO:0       LISTENING
  TCP    127.0.0.1:4242         MW70VRC49LC8OO:0       LISTENING
  TCP    127.0.0.1:60544        MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:80                MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:135               MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:445               MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:8000              MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:8883              MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:49152             MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:49153             MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:49154             MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:49155             MW70VRC49LC8OO:0       LISTENING
  TCP    [::]:49158             MW70VRC49LC8OO:0       LISTENING

我什至在 Skype > 选项 > 高级 > 连接 > 取消勾选选项中禁用了端口 80,443:使用端口 80 和 443 作为传入连接的替代选项。 我知道 Skype 和 Xampp 的端口存在冲突问题,因此我被告知要从 Skype 禁用它。

我需要事先进行配置吗,因为我有另一台笔记本电脑,在上面安装和启动 Apache 模块没有任何问题。

不胜感激。

【问题讨论】:

  • 发布 netstat -a | 的输出查找 /i "列表"
  • 我是否将其复制并粘贴到 Shell 程序中?我对 Xampp 有点陌生。没有充分探索它的能力等等。
  • 是的,从命令行运行它。
  • @EugenRieck 我已经用输出编辑了我的问题。请验证这是否是应该输出的正确输出。
  • 好的,我们现在可以确定,另一个 Web 服务器正在端口 80 上运行。您需要删除它或将 Apache 移动到另一个端口。由于我知道这是 WAMP 版本升级,因此“W”告诉我先重新启动并重试。

标签: apache xampp port


【解决方案1】:

我相信我可能已经找到了解决方案。正如@EugenRieck 可能建议我更改端口,因为网络服务器正在使用端口 80。

因此,我编辑了 Apache (httpd.conf) 文件并将以下行:Listen 80 更改为另一个端口号(例如 82)。

【讨论】:

    猜你喜欢
    • 2016-11-03
    • 2012-12-26
    • 2013-06-26
    • 2016-09-22
    • 1970-01-01
    • 2018-06-18
    • 2014-01-01
    • 2016-01-08
    • 2020-11-14
    相关资源
    最近更新 更多