2010-11-18 54 views
0

我的所有PHP页面都能正常工作,但有一个PHP页面用于正常工作,但现在它冻结了(当我在浏览器中浏览它时,它没有响应就超时)。Apache冻结在一个PHP页面

这就是会写日志的唯一错误:

[Thu Nov 18 12:23:18 2010] [notice] Apache/2.2.15 (Win32) PHP/5.2.13 configured -- resuming normal operations 
[Thu Nov 18 12:23:18 2010] [notice] Server built: Mar 4 2010 11:27:46 
[Thu Nov 18 12:23:18 2010] [notice] Parent: Created child process 3928 
[Thu Nov 18 12:23:19 2010] [notice] Child 3928: Child process is running 
[Thu Nov 18 12:23:19 2010] [notice] Child 3928: Acquired the start mutex. 
[Thu Nov 18 12:23:19 2010] [notice] Child 3928: Starting 64 worker threads. 
[Thu Nov 18 12:23:19 2010] [notice] Child 3928: Starting thread to listen on port 80. 
[Thu Nov 18 12:23:59 2010] [notice] Parent: child process exited with status 255 -- Restarting. 
[Thu Nov 18 12:24:05 2010] [notice] Apache/2.2.15 (Win32) PHP/5.2.13 configured -- resuming normal operations 
[Thu Nov 18 12:24:05 2010] [notice] Server built: Mar 4 2010 11:27:46 
[Thu Nov 18 12:24:05 2010] [notice] Parent: Created child process 388 
[Thu Nov 18 12:24:06 2010] [notice] Child 388: Child process is running 
[Thu Nov 18 12:24:06 2010] [notice] Child 388: Acquired the start mutex. 
[Thu Nov 18 12:24:06 2010] [notice] Child 388: Starting 64 worker threads. 
[Thu Nov 18 12:24:06 2010] [notice] Child 388: Starting thread to listen on port 80. 
[Thu Nov 18 12:24:24 2010] [notice] Parent: child process exited with status 255 -- Restarting. 
[Thu Nov 18 12:24:25 2010] [notice] Apache/2.2.15 (Win32) PHP/5.2.13 configured -- resuming normal operations 
[Thu Nov 18 12:24:25 2010] [notice] Server built: Mar 4 2010 11:27:46 
[Thu Nov 18 12:24:25 2010] [notice] Parent: Created child process 2816 
[Thu Nov 18 12:24:26 2010] [notice] Child 2816: Child process is running 
[Thu Nov 18 12:24:26 2010] [notice] Child 2816: Acquired the start mutex. 
[Thu Nov 18 12:24:26 2010] [notice] Child 2816: Starting 64 worker threads. 
[Thu Nov 18 12:24:26 2010] [notice] Child 2816: Starting thread to listen on port 80. 
[Thu Nov 18 12:24:26 2010] [notice] Parent: child process exited with status 255 -- Restarting. 
[Thu Nov 18 12:24:27 2010] [notice] Apache/2.2.15 (Win32) PHP/5.2.13 configured -- resuming normal operations 
[Thu Nov 18 12:24:27 2010] [notice] Server built: Mar 4 2010 11:27:46 
[Thu Nov 18 12:24:27 2010] [notice] Parent: Created child process 3680 
[Thu Nov 18 12:24:28 2010] [notice] Child 3680: Child process is running 
[Thu Nov 18 12:24:28 2010] [notice] Child 3680: Acquired the start mutex. 
[Thu Nov 18 12:24:28 2010] [notice] Child 3680: Starting 64 worker threads. 
[Thu Nov 18 12:24:28 2010] [notice] Child 3680: Starting thread to listen on port 80. 
[Thu Nov 18 12:28:52 2010] [notice] Parent: child process exited with status 255 -- Restarting. 
[Thu Nov 18 12:28:53 2010] [notice] Apache/2.2.15 (Win32) PHP/5.2.13 configured -- resuming normal operations 
[Thu Nov 18 12:28:53 2010] [notice] Server built: Mar 4 2010 11:27:46 
[Thu Nov 18 12:28:53 2010] [notice] Parent: Created child process 3828 
[Thu Nov 18 12:28:54 2010] [notice] Child 3828: Child process is running 
[Thu Nov 18 12:28:54 2010] [notice] Child 3828: Acquired the start mutex. 
[Thu Nov 18 12:28:54 2010] [notice] Child 3828: Starting 64 worker threads. 
[Thu Nov 18 12:28:54 2010] [notice] Child 3828: Starting thread to listen on port 80. 

我已经加入到该网页的唯一事情是一些JavaScript代码。我也尝试过注释整个页面的内容,以防在代码中出现一些无限的递归。

我重新启动了Apache和PC几次。

我的操作系统是Windows 7.可能是什么问题?

+0

当您删除已添加的JavaScript代码时会发生什么情况? – Chris 2010-11-18 11:34:41

+0

发布那个页面的代码,无限循环的地方? – ajreal 2010-11-18 11:38:29

回答

1

尝试通过命令行而不是通过服务器运行脚本 - 这可能会在控制台中给出更具体的错误消息。据我所知,您发布的错误日志似乎没有显示与您的脚本有关的任何内容。

在Linux中,你只需要输入:

提示> PHP myScript.php

我想,你可以在Windows命令终端做?

1

我想你可以下载非线程安全的(nts)PHP二进制文件。他们不能在Windows上正常工作。