【问题标题】:Apache showing error while starting in xamppApache 在 xampp 中启动时显示错误
【发布时间】:2019-02-14 05:44:04
【问题描述】:

我最近安装了xampp 7.3.1 版本的服务器。当我尝试启动mysqlapache 时。 sql server 正常启动,但 Apache 没有启动,显示如下错误

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

后来我google了一下,发现我们需要将端口号80改成任意数字。所以我将 80 更改为 81 并再次重新启动服务器,它显示相同的错误。

我做了如下端口更改

#Listen 12.34.56.78:81 #changed 80 to 81
Listen 81 #changed 80 to 81

ServerName localhost:81 #changed 80 to 81

有什么解决办法吗

【问题讨论】:

  • 您应该尝试改用 Devserver (easyphp.org)。使用 Devserver,如果一个端口已被使用,它会自动使用另一个端口。
  • 这个 Devserver 是否具有与 Xampp 相同的功能? @PeterEstiven
  • 是的,而且我认为更多。有几个模块可用。

标签: apache xampp localhost


【解决方案1】:

尝试运行 apache_start.bat 来查看端口是否真的有问题。

【讨论】:

    猜你喜欢
    • 2018-04-17
    • 2021-05-18
    • 2017-07-17
    • 2014-01-01
    • 2021-10-26
    • 2016-11-03
    • 2016-11-23
    • 2018-01-24
    • 2014-02-20
    相关资源
    最近更新 更多