Friday, May 24, 2013

WAMPServer 2.2 持续运行 Apache Connection Reset 问题的解决

在Windows平台安装的WAMP Server 2.2长时间运行某PHP脚本可能突然出现Connection Reset的问题,查看Apache的error log发现以下重启过程:

[Fri May 24 06:02:49 2013] [notice] Parent: child process exited with status 255 -- Restarting.
[Fri May 24 06:02:49 2013] [notice] Apache/2.2.22 (Win32) PHP/5.4.3 configured -- resuming normal operations
[Fri May 24 06:02:49 2013] [notice] Server built: May 13 2012 13:32:42
[Fri May 24 06:02:49 2013] [notice] Parent: Created child process 11884
[Fri May 24 06:02:49 2013] [notice] Child 11884: Child process is running
[Fri May 24 06:02:49 2013] [notice] Child 11884: Acquired the start mutex.
[Fri May 24 06:02:49 2013] [notice] Child 11884: Starting 64 worker threads.
[Fri May 24 06:02:49 2013] [notice] Child 11884: Starting thread to listen on port 80.
[Fri May 24 06:02:49 2013] [notice] Child 11884: Starting thread to listen on port 80.

经过一些研究,解决这个问题需要把wamp\bin\php\php5.x.x下的以下文件拷贝到windows/system32中:

  • php5apache2_2.dll
  • php5apache2_3.dll
  • php_mysqli.dll
  • php_mysql.dll
  • php_pdo_mysql.dll

目测暂时解决该问题,是否彻底解决有待观察。

No comments:

Post a Comment