2015-09-07 114 views
2

我正在面对与XAMPP v.3.2.1和SQL Server的Microsoft驱动程序(php_pdo_sqlsrv_56_ts.dll(v.3.2.0.0))的isssue。我按照有关如何安装这些驱动程序和向SQL Server查询的说明进行了解答。Apache HTTP服务器在呼叫SQL Server后停止工作

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

这是error.log中:

[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. 
+0

你从日志中得到什么?任何错误信息? – Paolo

+0

@paolo添加了error.log – Christoph

回答

0

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