代码之家  ›  专栏  ›  技术社区  ›  Richard Knop

Apache冻结在一个PHP页面上

  •  0
  • Richard Knop  · 技术社区  · 15 年前

    我的所有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。有什么问题吗?

    2 回复  |  直到 15 年前
        1
  •  1
  •   Purpletoucan    15 年前

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

    在Linux中,您只需键入:

    提示>php myScript.php

    我想你也可以在Windows的命令终端上做同样的事情?

        2
  •  1
  •   Vladislav Rastrusny    15 年前

    我认为您可以下载非线程安全(nts)PHP二进制文件。它们在窗户上不能正常工作。

    推荐文章