我在 PC 上安装了 xampp,但无法从 xampp 控制面板启动 Apache 和 MySQL。这个错误总是出现:
Error: Apache shutdown unexpectedly.
这可能是由于端口被阻塞,缺少依赖项, 不正确的权限、崩溃或通过其他方法关闭。 按日志按钮查看错误日志并检查 Windows 事件查看器以获取更多线索 如果您需要更多帮助,请复制并发布此 论坛上的整个日志窗口
我尝试了所有方法来解决它,还更改了端口但没有任何帮助,这个错误总是出现。
这是 apache 日志错误:
[ssl:warn] [pid 4560:tid 704] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[ssl:warn] [pid 4560:tid 704] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[mpm_winnt:notice] [pid 4560:tid 704] AH00455: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9 configured -- resuming normal operations
[mpm_winnt:notice] [pid 4560:tid 704] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01
[core:notice] [pid 4560:tid 704] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[mpm_winnt:notice] [pid 4560:tid 704] AH00418: Parent: Created child process 6128
[ssl:warn] [pid 6128:tid 600] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[ssl:warn] [pid 6128:tid 600] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[mpm_winnt:crit] [pid 6128:tid 600] (OS 109)פעולת הצינור הסתיימה. : AH00404: Child: Unable to read socket data from parent
[mpm_winnt:crit] [pid 4560:tid 704] AH00427: Parent: child process 6128 exited with status 3 -- Aborting.
请帮助我,这是一个严重的问题。
最佳答案
解决方案可能是取消选中 TCP/IP
协议(protocol)设置(在 WINS 设置下)中的“Enable LMHOSTS Lookup
”框。以下是执行此操作的步骤:
- 打开“控制面板”,然后打开“网络连接”。
- 右键点击“本地连接”并选择“属性”。
- 双击“Internet 协议(protocol) (TCP/IP)”行以打开 “属性。”
- 在“常规”选项卡上,点击“高级”按钮。
- 选择“WINS”选项卡并取消选中“启用 LMHOSTS 查找”复选框。
关于php - Apache 和 MySQL 无法在 xampp 控制面板上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22607414/