2017-02-14 71 views
0

好吧,首先我明白了......允許......你們都笑了:我有本地服務器運行php 4,4/apache/mysql - 使用xampp分發安裝。只是根本沒有時間升級已經服務多年的所有代碼,並且仍然服務於我:-)PHP XAMPP日誌解析 - 服務器關閉/ connecton從瀏覽器丟失

問題 - 我無法嘗試/捕捉... beeeecause舊的PHP版本。我有一個腳本,解析一個目錄和所有文件的很多東西......並在多年後幾十萬個文件沒有問題...我現在發現服務器關閉/瀏覽器失去連接可能是因爲一個單一的文件...但我的生活我無法弄清楚哪一個。所以想想,也許我可以通過錯誤日誌找出它。但是......我沒有學到太多 - 我想我可能會在這裏問一些有智慧的人,如果有什麼我可以從我的錯誤日誌中學到以下內容 - 關於可能是什麼函數/文件或任何它會導致破壞。 ..:

[Tue Feb 14 20:47:26 2017] [crit] (22)Invalid argument: unable to replace stderr with error_log 
[Tue Feb 14 20:47:26 2017] [crit] (2)No such file or directory: unable to replace stderr with /dev/null 
[Tue Feb 14 20:47:26 2017] [notice] Apache/2.0.54 (Win32) mod_ssl/2.0.54 OpenSSL/0.9.8 PHP/4.4.0 mod_autoindex_color configured -- resuming normal operations 
[Tue Feb 14 20:47:26 2017] [notice] Server built: Jul 28 2005 18:10:37 
[Tue Feb 14 20:47:26 2017] [notice] Parent: Created child process 5384 
[Tue Feb 14 20:47:27 2017] [notice] Child 5384: Child process is running 
[Tue Feb 14 20:47:27 2017] [notice] Child 5384: Acquired the start mutex. 
[Tue Feb 14 20:47:27 2017] [notice] Child 5384: Starting 250 worker threads. 
[Tue Feb 14 20:47:36 2017] [notice] Parent: child process exited with status 3221225725 -- Restarting. 
[Tue Feb 14 20:47:36 2017] [crit] (22)Invalid argument: unable to replace stderr with error_log 
[Tue Feb 14 20:47:36 2017] [crit] (2)No such file or directory: unable to replace stderr with /dev/null 
[Tue Feb 14 20:47:36 2017] [notice] Apache/2.0.54 (Win32) mod_ssl/2.0.54 OpenSSL/0.9.8 PHP/4.4.0 mod_autoindex_color configured -- resuming normal operations 
[Tue Feb 14 20:47:36 2017] [notice] Server built: Jul 28 2005 18:10:37 
[Tue Feb 14 20:47:36 2017] [notice] Parent: Created child process 3136 
[Tue Feb 14 20:47:36 2017] [notice] Child 3136: Child process is running 
[Tue Feb 14 20:47:36 2017] [notice] Child 3136: Acquired the start mutex. 
[Tue Feb 14 20:47:36 2017] [notice] Child 3136: Starting 250 worker threads. 

回答

0

知道了... filesize()失敗(無聲地aparently)某些文件。不用這個功能就可以運行它。案例關閉...

編輯:奇怪,雖然... filesize()突然失敗的所有文件。他們是本地的。 Subdir到htdocs文件夾...並且這個結構的頂層文件夾被設置爲我的所有用戶完全控制這個文件夾和所有子文件夾......很奇怪...