繁体   English   中英

Apache冻结在一个PHP页面上

[英]Apache freezes at a single PHP page

我所有的PHP页面都可以正常工作,但是曾经有一个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。

我的操作系统是Windows7。可能是什么问题?

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

在Linux中,您只需输入:

提示> php myScript.php

我想你可以从Windows的命令终端做同样的事情吗?

我认为您可以下载非线程安全(nts)PHP二进制文件。 它们无法在Windows上正常运行。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM