php - Apache 和 MySQL 无法在 xampp 控制面板上运行

标签 php mysql sql apache ssl

我在 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”框。以下是执行此操作的步骤:

  1. 打开“控制面板”,然后打开“网络连接”。
  2. 右键点击“本地连接”并选择“属性”。
  3. 双击“Internet 协议(protocol) (TCP/IP)”行以打开 “属性。”
  4. 在“常规”选项卡上,点击“高级”按钮。
  5. 选择“WINS”选项卡并取消选中“启用 LMHOSTS 查找”复选框。

http://www.jennyconnors.com/computers/installing-apache2-and-the-wsasocket-failed-to-open-the-inherited-socket-error

关于php - Apache 和 MySQL 无法在 xampp 控制面板上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22607414/

相关文章:

php - 这个使用 Pear Mail 发送邮件的 PHP 脚本有什么问题?

php - Prestashop后台批量产品导入

mysql - 从类表继承确定类型

php - 光标是执行此操作的唯一方法吗?

php - 控制台日志显示整个文件而不是数据

php - 如何将.txt 文件上传到数据库?

javascript - Node 中的模块导出使用错误

c# - 数据绑定(bind)到数据表或gridview时出错

mysql使用同一组的最小值更新组的最大值,多行

php - Magento 设置新的属性值