连接重置在wamp上

我在我的电脑上安装了wamp服务器。 然后我安装了一个zend应用程序。 我把它放在www目录的medaffiliate.com目录下。 当我通过localhost/medaffiliate.com访问该目录时,它只显示

  The connection was reset 

我已经经历了很多答案,如https://serverfault.com/questions/74313/what-c​​ould-cause-an-101-error-in-wamp-under-windows-7

他们都在说closuresmysql_close($connect); 。 我的Apache错误日志显示了我

  [Sat Jul 21 18:35:45 2012] [notice] Parent: child process exited with status 255 -- Restarting. [Sat Jul 21 18:35:45 2012] [notice] Apache/2.2.17 (Win32) PHP/5.3.4 configured -- resuming normal operations [Sat Jul 21 18:35:45 2012] [notice] Server built: Oct 24 2010 13:33:15 [Sat Jul 21 18:35:45 2012] [notice] Parent: Created child process 6768 [Sat Jul 21 18:35:45 2012] [notice] Child 6768: Child process is running [Sat Jul 21 18:35:45 2012] [notice] Child 6768: Acquired the start mutex. [Sat Jul 21 18:35:45 2012] [notice] Child 6768: Starting 64 worker threads. [Sat Jul 21 18:35:45 2012] [notice] Child 6768: Starting thread to listen on port 80. [Sat Jul 21 18:36:21 2012] [notice] Parent: child process exited with status 255 -- Restarting. [Sat Jul 21 18:36:21 2012] [notice] Apache/2.2.17 (Win32) PHP/5.3.4 configured -- resuming normal operations [Sat Jul 21 18:36:21 2012] [notice] Server built: Oct 24 2010 13:33:15 [Sat Jul 21 18:36:21 2012] [notice] Parent: Created child process 1140 [Sat Jul 21 18:36:21 2012] [notice] Child 1140: Child process is running [Sat Jul 21 18:36:21 2012] [notice] Child 1140: Acquired the start mutex. [Sat Jul 21 18:36:21 2012] [notice] Child 1140: Starting 64 worker threads. [Sat Jul 21 18:36:21 2012] [notice] Child 1140: Starting thread to listen on port 80. [Sat Jul 21 18:40:39 2012] [notice] Parent: child process exited with status 255 -- Restarting. [Sat Jul 21 18:40:39 2012] [notice] Apache/2.2.17 (Win32) PHP/5.3.4 configured -- resuming normal operations [Sat Jul 21 18:40:39 2012] [notice] Server built: Oct 24 2010 13:33:15 [Sat Jul 21 18:40:39 2012] [notice] Parent: Created child process 7892 [Sat Jul 21 18:40:39 2012] [notice] Child 7892: Child process is running [Sat Jul 21 18:40:39 2012] [notice] Child 7892: Acquired the start mutex. [Sat Jul 21 18:40:39 2012] [notice] Child 7892: Starting 64 worker threads. [Sat Jul 21 18:40:39 2012] [notice] Child 7892: Starting thread to listen on port 80. 

我发现其他人在与数据库build立连接时也面临着这样的问题。 我在我的www目录上创build了另一个项目,并与数据库build立连接。 这是工作。 但不是我的项目。

我使用os:window 7. Apache : 2.2.17, PHP:5.3.4, Mysql : 5.1.53

我有一个类似的问题,我不能通过增加超时和内存限制来解决。

经过几个小时的反复试验,我终于偶然发现了另外一个帖子: https : //drupal.org/node/1597820 ,它解决了我的问题。

将以下内容添加到httpd.conf的末尾以将Apache堆栈大小增加到8MB。

 <Ifmodulee mpm_winnt_module> ThreadStackSize 8388608 </Ifmodulee> 

我经历了这个错误很多次,我的解决方案是增加apache二进制文件(apache.exe或httpd.exe)的堆栈大小。 你将需要Visual Studio来做到这一点,但你可以像我一样使用试用版。 你甚至不需要打开它。 该命令是:

 C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64>editbin /STACK:8000000 "c:\Program Files (x86)\WAMP\apache\bin\apache.exe" 

当然根据你的环境改变路径。

在Visual Studio目录中,VC / binary /有几个实用程序,名称为editbin.exe。 使用适合你的平台或者一个一个地尝试,直到它工作(像我一样)。