【问题标题】:Cannot start Apache on XAMPP无法在 XAMPP 上启动 Apache
【发布时间】:2015-11-24 09:34:27
【问题描述】:

我似乎无法弄清楚是什么阻塞了我的端口。但是我重新检查了阻止它的原因,XAMPP 说 apache 是。然后说从根目录开始?如果它按照它所说的那样做,不确定它是如何运行的。另外,我无法在 motepad++ 上使用 apache 编辑配置日志,只是想出了一个空白的新注释。谢谢!

这是日志---

10:57:21 PM  [Apache] 	Problem detected: Apache Not Found!
10:57:21 PM  [Apache] 	Disabling Apache buttons
10:57:21 PM  [Apache] 	Run this program from your XAMPP root directory!
10:57:21 PM  [Apache] 	Problem detected!
10:57:21 PM  [Apache] 	Port 80 in use by "C:\xampp\apache\bin\httpd.exe" with PID 15972!
10:57:21 PM  [Apache] 	Apache WILL NOT start without the configured ports free!
10:57:21 PM  [Apache] 	You need to uninstall/disable/reconfigure the blocking application
10:57:21 PM  [Apache] 	or reconfigure Apache and the Control Panel to listen on a different port
10:57:21 PM  [Apache] 	Problem detected!
10:57:21 PM  [Apache] 	Port 443 in use by "C:\xampp\apache\bin\httpd.exe" with PID 15972!
10:57:21 PM  [Apache] 	Apache WILL NOT start without the configured ports free!
10:57:21 PM  [Apache] 	You need to uninstall/disable/reconfigure the blocking application
10:57:21 PM  [Apache] 	or reconfigure Apache and the Control Panel to listen on a different port

【问题讨论】:

  • 看起来它已经在运行了

标签: java php apache perl xampp


【解决方案1】:

确保在启动 Apache 时,Skype 未在您的 PC 中运行。这是因为 Apache 只有在 80 端口打开时才能启动。但是Skype保留了端口。您可以退出 Skype,启动 Apache,然后再次启动 Skype。

【讨论】:

  • 但是端口 80 正在被 "C:\xampp\apache\bin\httpd.exe" 使用
  • 哎呀!您是否尝试重新安装程序?
  • 端口未阻塞。现在它只告诉我从我的根目录运行 apache。但是,开始和管理按钮是灰色的,而且复选框仍然...
【解决方案2】:

您不需要重新安装它,只需按照以下步骤更改您的tomcat服务器的端口号:

1.C:\xampp\tomcat\conf\server.xml

  1. 更改端口号

          <Connector port="8080" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443" />
    

8080 到您系统中任何其他应用程序未使用的任何其他应用程序 例如1234

它肯定可以重新启动你的服务器然后启动tomcat......

【讨论】:

    【解决方案3】:

    前几天我在工作中在 Windows 7 笔记本电脑上设置 XAMPP 时发生了类似的事情。安装完成后,我无法在端口 80 上启动 Apache,因为 Apache 服务已经启动,尽管 XAMPP 控制台显示已停止。但是,任务管理器显示 httpd 服务是从 XAMPP bin 目录启动的。

    我尝试卸载、重新安装...但有效的是在安装后立即重新启动笔记本电脑。 Windows 重新启动后,我确认 Apache 尚未启动。然后我能够成功打开 XAMPP 控制台并启动 Apache。

    傻窗……

    希望这会有所帮助....

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-11-29
      • 2018-02-28
      • 1970-01-01
      • 2016-02-13
      • 2013-12-06
      • 1970-01-01
      • 2020-10-18
      • 2016-04-09
      相关资源
      最近更新 更多