2015-09-07 100 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」文件,該文件將幫助您進行配置。