【问题标题】:Apache in Xampp keeps crashing on startXampp 中的 Apache 在启动时一直崩溃
【发布时间】:2017-11-08 23:12:01
【问题描述】:

我已经安装了 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 文件,但仍然无法正常工作。

【问题讨论】:

    标签: apache xampp


    【解决方案1】:

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

    【讨论】:

    • 我还没有设置服务器名称或证书,因为 Apache 会立即崩溃。
    【解决方案2】:

    我终于修复了这个错误!

    我只是尝试了一个非常旧版本的 XAMPP,它成功了!新版本比旧版本有更多错误,而且开发该东西的人甚至无法使用自己的调试消息进行调试,这真是太愚蠢了。

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

    【讨论】:

    • 最好不要公开谈论开源开发者——它没有取得任何成果,而且很可能是完全错误的。我们不知道问题是他们的错还是你的错 - 我的猜测是你的机器上有些东西扰乱了 Windows 可执行文件。如果您认为您有一个可重现的问题,请向团队记录一个错误,并帮助他们修复它。这就是您免费获得优质软件的交换条件
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-20
    • 2016-04-23
    相关资源
    最近更新 更多