简体   繁体   English

XAMPP错误:Apache意外关闭

[英]XAMPP Error: Apache shutdown unexpectedly

I am having this error on starting apache in XAMPP localhost, not able to understand it. 我在XAMPP本地主机中启动apache时遇到此错误,无法理解。 I have tried changing the default port in httpd.conf, still not working. 我尝试更改httpd.conf中的默认端口,但仍然无法正常工作。 Here's the error log 这是错误日志

[Tue Sep 29 23:04:02.742779 2015] [ssl:warn] [pid 6344:tid 528] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Sep 29 23:04:03.294494 2015] [ssl:warn] [pid 6344:tid 528] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Sep 29 23:04:06.655537 2015] [mpm_winnt:notice] [pid 6344:tid 528] AH00455: Apache/2.4.16 (Win32) OpenSSL/1.0.1p PHP/5.5.28 configured -- resuming normal operations
[Tue Sep 29 23:04:06.655537 2015] [mpm_winnt:notice] [pid 6344:tid 528] AH00456: Apache Lounge VC11 Server built: Jul 12 2015 10:56:48
[Tue Sep 29 23:04:06.655537 2015] [core:notice] [pid 6344:tid 528] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Tue Sep 29 23:04:06.671166 2015] [mpm_winnt:notice] [pid 6344:tid 528] AH00418: Parent: Created child process 1324
[Tue Sep 29 23:04:08.040905 2015] [ssl:warn] [pid 1324:tid 536] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Sep 29 23:04:08.322172 2015] [ssl:warn] [pid 1324:tid 536] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Sep 29 23:04:08.509695 2015] [mpm_winnt:notice] [pid 1324:tid 536] AH00354: Child: Starting 150 worker threads.

Turn off SSL (HTTPS) on your server unless you need it. 除非需要,否则请关闭服务器上的SSL(HTTPS)。

On XAMP, Go to config -> apache and choose the httpd.conf file. 在XAMP上,转到config-> apache并选择httpd.conf文件。 Save a backup somewhere safe. 将备份保存在安全的地方。 Then look for the directive: 然后寻找指令:

Listen 443

Put a # before this to disable SSL. 在此之前加#可以禁用SSL。 Likewise depending on Xamp, you may have virtual hosts listening on this port. 同样,根据Xamp,您可能会让虚拟主机在此端口上侦听。 Look for any config blocks listening on 443 (might be *:443) and comment them out. 查找监听443的任何配置块(可能是*:443)并将其注释掉。

Final option to check is the SSL engine. 最后要检查的选项是SSL引擎。 This could be in a seperate config file (ssl.conf). 这可能在单独的配置文件(ssl.conf)中。

SSLEngine on

Change it to off. 将其更改为关闭。

All of those should disable SSL for you. 所有这些都应该为您禁用SSL。 Unless you need it, in which case there's an issue between your certificate and server config which we can look into. 除非您需要它,否则在这种情况下,您的证书和服务器配置之间存在问题,我们可以研究一下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM