2017-02-14 19 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文件夹...并且这个结构的顶层文件夹被设置为我的所有用户完全控制这个文件夹和所有子文件夹......很奇怪...