连接被上WAMP复位(The connection was reset on wamp)

2019-09-19 23:40发布

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

 The connection was reset

我经历了许多的答案了喜欢https://serverfault.com/questions/74313/what-c​​ould-cause-an-101-error-in-wamp-under-windows-7

他们都在说关于关闭mysql_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.

我发现,当他们创建数据库连接谁正面临着这样的问题的其他人员。 我已在www目录下创建的其他项目,并与数据库的连接。 这是工作。 但不是我的项目。

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

Answer 1:

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

几个小时的反复试验后,我终于偶然发现了这个其他职位: https://drupal.org/node/1597820 ,解决这个问题对我来说。

以下内容添加到httpd.conf中增加了Apache堆栈大小8MB结束。

<IfModule mpm_winnt_module>
   ThreadStackSize 8388608
</IfModule>


Answer 2:

我曾经历过这个错误很多次,我的解决办法是增加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 /二进制/有几个实用程序的名称为editbin.exe。 使用一个适合你的平台或尝试他们一个接一个,直到它的工作原理(像我一样)。



文章来源: The connection was reset on wamp