【问题标题】:Apache HTTP Server stops working after call on SQL ServerApache HTTP Server 在 SQL Server 上调用后停止工作
【发布时间】:2015-12-02 23:29:43
【问题描述】:

我遇到了 XAMPP v.3.2.1 和 Microsoft SQL Server 驱动程序 (php_pdo_sqlsrv_56_ts.dll (v.3.2.0.0)) 的问题。我按照有关如何安装这些驱动程序的说明进行操作,并回答了对 SQL Server 的查询。

但是,对于每一个答案,XAMPP 中的 Apache 模块都会在 httpd.exe (v. 2.4.12.0) 上出现 APPCRASH 崩溃。除非我关闭程序,导致 Apache 重新启动,否则不会回答查询。

这是错误日志:

[Mon Sep 07 15:43:08.413266 2015] [ssl:warn] [pid 1902972:tid 512] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Sep 07 15:43:08.491275 2015] [core:warn] [pid 1902972:tid 512] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Sep 07 15:43:09.008546 2015] [ssl:warn] [pid 1902972:tid 512] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Sep 07 15:43:09.815810 2015] [mpm_winnt:notice] [pid 1902972:tid 512] AH00455: Apache/2.4.12 (Win32) OpenSSL/1.0.1m PHP/5.6.11 configured -- resuming normal operations
[Mon Sep 07 15:43:09.815810 2015] [mpm_winnt:notice] [pid 1902972:tid 512] AH00456: Apache Lounge VC11 Server built: Mar 20 2015 12:12:41
[Mon Sep 07 15:43:09.815810 2015] [core:notice] [pid 1902972:tid 512] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Mon Sep 07 15:43:09.818813 2015] [mpm_winnt:notice] [pid 1902972:tid 512] AH00418: Parent: Created child process 1903580
[Mon Sep 07 15:43:10.697569 2015] [ssl:warn] [pid 1903580:tid 384] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Sep 07 15:43:11.276463 2015] [ssl:warn] [pid 1903580:tid 384] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Sep 07 15:43:11.372490 2015] [mpm_winnt:notice] [pid 1903580:tid 384] AH00354: Child: Starting 150 worker threads.
[Mon Sep 07 15:43:46.469985 2015] [mpm_winnt:notice] [pid 1902972:tid 512] AH00428: Parent: child process 1903580 exited with status 3221225477 -- Restarting.
[Mon Sep 07 15:43:47.150020 2015] [ssl:warn] [pid 1902972:tid 512] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Sep 07 15:43:47.221026 2015] [mpm_winnt:notice] [pid 1902972:tid 512] AH00455: Apache/2.4.12 (Win32) OpenSSL/1.0.1m PHP/5.6.11 configured -- resuming normal operations
[Mon Sep 07 15:43:47.221026 2015] [mpm_winnt:notice] [pid 1902972:tid 512] AH00456: Apache Lounge VC11 Server built: Mar 20 2015 12:12:41
[Mon Sep 07 15:43:47.221026 2015] [core:notice] [pid 1902972:tid 512] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Mon Sep 07 15:43:47.223036 2015] [mpm_winnt:notice] [pid 1902972:tid 512] AH00418: Parent: Created child process 1902296
[Mon Sep 07 15:43:48.064078 2015] [ssl:warn] [pid 1902296:tid 588] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Sep 07 15:43:48.576094 2015] [ssl:warn] [pid 1902296:tid 588] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Sep 07 15:43:48.646099 2015] [mpm_winnt:notice] [pid 1902296:tid 588] AH00354: Child: Starting 150 worker threads.

【问题讨论】:

  • 你从日志中得到了什么?有什么错误信息吗?
  • @paolo 添加了错误日志

标签: php sql-server apache xampp


【解决方案1】:

我认为要缩小错误范围,您必须尝试调试驱动程序 dll。 您可以尝试使用https://msdn.microsoft.com/en-us/library/windows/hardware/ff551063%28v=vs.85%29.aspx 从 dll 中获取 anny 消息吗?

你也可以试试http://grantschenck.tripod.com/dbwinv2.htm...

【讨论】:

    【解决方案2】:

    我认为您的 PHP 版本和驱动程序 .dll 版本不匹配。 请参考https://www.microsoft.com/en-us/download/details.aspx?id=20098 url 并检查驱动程序需要哪个 php 版本的选项和
    安装后,您将在您的 ext 目录中获得“SQLSRV_Readme.htm”文件,该文件将帮助您进行配置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-17
      • 2016-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-15
      • 2018-12-09
      相关资源
      最近更新 更多