xampp安装后运行apache的错误

我在win7上安装了xampp,并在启动apache时出现这个错误。 我没有选中的Skype,没有任何改变。 我如何find什么是使用端口80? 我该如何解决这个问题。 我没有运行另一台服务器。

update this is the error. I click on start and get this problem Error: Apache shutdown unexpectedly. 11:27:19 PM [Apache] This may be due to a blocked port, missing dependencies, 11:27:19 PM [Apache] improper privileges, a crash, or a shutdown by another method. 11:27:19 PM [Apache] Press the Logs button to view error logs and check 11:27:19 PM [Apache] the Windows Event Viewer for more clues 11:27:19 PM [Apache] If you need more help, copy and post this 11:27:19 PM [Apache] entire log window on the forums 

下面的链接没有帮助我

为什么Apache不能在XAMPP安装中启动?

这是错误日志

 [Sat Jun 07 22:36:53.823331 2014] [ssl:warn] [pid 6048:tid 236] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Sat Jun 07 22:36:54.084345 2014] [ssl:warn] [pid 6048:tid 236] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Sat Jun 07 22:36:55.240412 2014] [mpm_winnt:notice] [pid 6048:tid 236] AH00455: Apache/2.4.9 (Win32) OpenSSL/1.0.1g PHP/5.5.11 configured -- resuming normal operations [Sat Jun 07 22:36:55.241412 2014] [mpm_winnt:notice] [pid 6048:tid 236] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:13:13 [Sat Jun 07 22:36:55.241412 2014] [core:notice] [pid 6048:tid 236] AH00094: Command line: 'E:\\xampp\\apache\\bin\\httpd.exe -d E:/xampp/apache' [Sat Jun 07 22:36:55.339417 2014] [mpm_winnt:notice] [pid 6048:tid 236] AH00418: Parent: Created child process 1840 [Sat Jun 07 22:36:55.950452 2014] [ssl:warn] [pid 1840:tid 248] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Sat Jun 07 22:36:56.202467 2014] [ssl:warn] [pid 1840:tid 248] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Sat Jun 07 22:36:56.299472 2014] [mpm_winnt:notice] [pid 1840:tid 248] AH00354: Child: Starting 150 worker threads. 

尝试这些方法,它应该工作:

  • 退出/退出Skype (确保它没有运行),因为它保留localhost:80
  • 禁用防病毒(首先尝试禁用Skype并再次运行,如果不起作用,请执行此步骤)
  • 右键单击xampp控制面板并以管理员身份运行

我有同样的问题,我解决了更改端口。

– >点击按钮配置前面的Apache。
1)选择Apache(httpd.conf)
2)搜索这一行: 听80
3)改为这个: 听8081
4)保存的文件
– >点击Apache的配置按钮。
1)选择Apache(httpd-ssl.conf)
2)搜索这一行: 收听443
3)改变了这个: 听444
4)保存的文件
我可以从8081端口运行xammp
HTTP://本地主机:8081 /
你必须给你输入本地主机的端口号
希望这可以帮助你理解正在发生的事情。

我想杀死使用该端口的过程比更改配置文件中的端口更容易处理。 这里是如何在Windows中做到这一点。 你可以按照相同的程序到Linux,但不同的命令。 以Administrator身份运行命令提示符。 然后输入下面的命令来找出使用该端口的所有进程。

 netstat -ano 

将会有大量使用各种端口的进程。 所以要得到只有端口,我们需要使用像下面的findstr (这里我使用端口80)

 netstat -ano | findstr 80 

这会给你这样的结果

 TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 7964 

最后一个号码是进程的进程ID。 所以我们要做的就是使用PID来taskkill进程,我们可以使用taskkill命令。

 taskkill /PID 7964 /F 

再次运行您的服务器。 这一次它将能够运行。 这也可以用于Mysql服务器。

http://www.example.com:443:0服务器证书不包含与服务器名称匹配的ID

我试图启动Apache时出现这个错误,Apache没有错误。 这是在Windows 8上的依赖性错误 – 可能与7相同。只需右键单击并以管理员身份运行:)

如果您仍然收到错误,请检查您的防病毒/防火墙是否阻止Xampp或端口443。