Xampp中的Apache在启动时不断崩溃

时间:2017-11-08 23:12:01

标签: apache xampp

我已经安装了Xampp,因为我需要设置Apache服务器,但即使我已经反复尝试了所有内容,但每当我启动它时,事情仍然会崩溃。我确保端口是开放的,我处于管理员模式,我甚至确保从2008年到2017年安装VC软件包。

MySQL可以正常运行但Apache没有。我点击开始,它给了我这个错误:

22:23:35  [Apache]  Error: Apache shutdown unexpectedly.
22:23:35  [Apache]  This may be due to a blocked port, missing dependencies, 
22:23:35  [Apache]  improper privileges, a crash, or a shutdown by another 
method.
22:23:35  [Apache]  Press the Logs button to view error logs and check
22:23:35  [Apache]  the Windows Event Viewer for more clues
22:23:35  [Apache]  If you need more help, copy and post this
22:23:35  [Apache]  entire log window on the forums

我试过在Apache论坛上提问,但它们没用。我通过其他方式获得的其他错误消息是:

Faulting application name: httpd.exe, version: 2.4.28.0, time stamp: 
0x59d4a9ab
Faulting module name: mod_version.so, version: 2.4.28.0, time stamp: 
0x59d4a9b0
Exception code: 0xc0000005
Fault offset: 0x00000870
Faulting process id: 0x15a0
Faulting application start time: 0x01d3586ed92e5787
Faulting application path: c:\xampp\apache\bin\httpd.exe
Faulting module path: C:\xampp\apache\modules\mod_version.so
Report Id: 18c711d5-c462-11e7-84f0-cb55049d9b8a

[Wed Nov 08 13:15:51.674477 2017] [ssl:info] [pid 3700:tid 396] AH01887: 
Init: Initializing (virtual) servers for SSL
[Wed Nov 08 13:15:51.676477 2017] [ssl:info] [pid 3700:tid 396] AH01914: 
Configuring server www.example.com:443 for SSL protocol
[Wed Nov 08 13:15:51.676477 2017] [ssl:debug] [pid 3700:tid 396] 
ssl_engine_init.c(444): AH01893: Configuring TLS extension handling
[Wed Nov 08 13:15:51.677477 2017] [ssl:debug] [pid 3700:tid 396] 
ssl_util_ssl.c(443): AH02412: [www.example.com:443] Cert does not match for 
name 'www.example.com' [subject: CN=localhost / issuer: CN=localhost / 
serial: 
B5C752C98781B503 / notbefore: Nov 10 23:48:47 2009 GMT / notafter: Nov 8 
23:48:47 2019 GMT]
[Wed Nov 08 13:15:51.677477 2017] [ssl:warn] [pid 3700:tid 396] AH01909: 
www.example.com:443:0 server certificate does NOT include an ID which 
matches the server name
[Wed Nov 08 13:15:51.677477 2017] [ssl:info] [pid 3700:tid 396] AH02568: 
Certificate and private key www.example.com:443:0 configured from 
C:/xampp/apache/conf/ssl.crt/server.crt and 
C:/xampp/apache/conf/ssl.key/server.key
[Wed Nov 08 13:15:51.677477 2017] [ssl:info] [pid 3700:tid 396] AH01876: 
mod_ssl/2.4.28 compiled against Server: Apache/2.4.28, Library: 
OpenSSL/1.0.2l

我修复了所有的DLL文件,但它仍然无效。

2 个答案:

答案 0 :(得分:0)

您的证书与您配置的servername不符。这不是php或mysql问题,而是Apache问题。您应该查看httpd.confssl.conf文件。

答案 1 :(得分:0)

我终于修复了这个错误!

我只是尝试了一个非常老版本的XAMPP,它有效!新版本比旧版本更加错误并且开发该版本的人甚至无法使用他们自己的调试消息进行调试,这是非常愚蠢的。

我想我之前尝试过那个旧版本但它没有用,所以它一定与VC文件有关。