在 Windows 2008 伺服器上載入頁面時,apache 連線被重置

在 Windows 2008 伺服器上載入頁面時,apache 連線被重置

我正在使用 xampp 伺服器在 Windows 2008 伺服器中運行 php 腳本,該腳本正常工作,直到我檢查一些頁面,它開始加載我在 firefox 中收到此錯誤:

載入頁面時重置了與伺服器的連線。

該網站可能暫時無法使用或太忙。請稍後重試。如果您無法載入任何頁面,請檢查電腦的網路連線。如果您的電腦或網路受防火牆或代理程式保護,請確保 Firefox 有權存取網絡

當我檢查 php 日誌時,我什麼也沒得到,在 apache 日誌中,我總是在遇到問題後找到這個:

[Fri Jun 12 11:37:02.076599 2015] [mpm_winnt:notice] [pid 3868:tid 336] AH00428: Parent: child process 3048 exited with status 255 -- Restarting.
[Fri Jun 12 11:37:08.144999 2015] [ssl:warn] [pid 3868:tid 336] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jun 12 11:37:08.878199 2015] [mpm_winnt:notice] [pid 3868:tid 336] AH00455: Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.5.24 configured -- resuming normal operations
[Fri Jun 12 11:37:08.878199 2015] [mpm_winnt:notice] [pid 3868:tid 336] AH00456: Apache Lounge VC11 Server built: Jan 28 2015 16:48:40
[Fri Jun 12 11:37:08.878199 2015] [core:notice] [pid 3868:tid 336] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Fri Jun 12 11:37:08.909399 2015] [mpm_winnt:notice] [pid 3868:tid 336] AH00418: Parent: Created child process 3736
[Fri Jun 12 11:37:10.157399 2015] [ssl:warn] [pid 3736:tid 268] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jun 12 11:37:10.469399 2015] [ssl:warn] [pid 3736:tid 268] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jun 12 11:37:10.609799 2015] [mpm_winnt:notice] [pid 3736:tid 268] AH00354: Child: Starting 150 worker threads.

我禁用了防火牆,更改了端口,增加了內存限制,但沒有任何結果。
我對腳本進行了備份,並將其移至運行 Windows 7 的筆記型電腦上,問題消失並且腳本開始正常工作。

那麼這個問題是apache造成的嗎?我該如何解決它?

經過多次測試,我發現這種情況只發生在Firefox 瀏覽器中,並且在google chrome 中正常工作,我清除了Firefox 中的所有快取和歷史記錄,但它不起作用。問題,但我現在正在使用chrome 和我忽略了 firefox。

答案1

如果您有任何操作碼緩存,例如 APC 或上面列出的操作碼之一https://en.wikipedia.org/wiki/List_of_PHP_accelerators,你可以嘗試停用它。如果我沒記錯的話,由於 APC,我也遇到類似的問題。

相關內容