请PHP高手、专家指点,谢谢!

解决方案 »

  1.   

    Apa Ser启动报:Err   The requested operation has failed!
      

  2.   

    [Thu Aug 04 09:42:04 2011] [warn] pid file D:/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    httpd.exe: Could not reliably determine the server's fully qualified domain name, using 10.160.140.12 for ServerName
    [Thu Aug 04 09:45:42 2011] [warn] pid file D:/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    httpd.exe: Could not reliably determine the server's fully qualified domain name, using 10.160.140.12 for ServerName
    [Thu Aug 04 09:57:03 2011] [warn] pid file D:/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Thu Aug 04 09:57:03 2011] [notice] Apache/2.2.19 (Win32) configured -- resuming normal operations
    [Thu Aug 04 09:57:03 2011] [notice] Server built: May 20 2011 17:39:35
    [Thu Aug 04 09:57:03 2011] [notice] Parent: Created child process 6124
    httpd.exe: Could not reliably determine the server's fully qualified domain name, using 10.160.140.12 for ServerName
    httpd.exe: Could not reliably determine the server's fully qualified domain name, using 10.160.140.12 for ServerName
    [Thu Aug 04 09:57:03 2011] [notice] Child 6124: Child process is running
    [Thu Aug 04 09:57:03 2011] [notice] Child 6124: Acquired the start mutex.
    [Thu Aug 04 09:57:03 2011] [notice] Child 6124: Starting 64 worker threads.
    [Thu Aug 04 09:57:03 2011] [notice] Child 6124: Starting thread to listen on port 80.
    [Thu Aug 04 10:30:26 2011] [notice] Parent: Received restart signal -- Restarting the server.
    [Thu Aug 04 10:30:26 2011] [notice] Child 6124: Exit event signaled. Child process is ending.
    Syntax error on line 131 of D:/Apache Software Foundation/Apache2.2/conf/httpd.conf:
    PHPINIDir takes one argument, Directory containing the php.ini file
    [Thu Aug 04 10:30:26 2011] [warn] (OS 995)The I/O operation has been aborted because of either a thread exit or an application request.  : winnt_accept: Asynchronous AcceptEx failed.
    [Thu Aug 04 10:30:27 2011] [notice] Child 6124: Released the start mutex
    [Thu Aug 04 10:30:28 2011] [notice] Child 6124: All worker threads have exited.
    [Thu Aug 04 10:30:28 2011] [notice] Child 6124: Child process is exiting
      

  3.   

    #PHPIniDir “D:/Apache Software Foundation/PHP”引号应该是英文状态的,而你的确实中文状态的
      

  4.   

    我把“D:/Apache Software Foundation/PHP”
    和域名都改了,现在App Ser好像可以运行了。
      

  5.   

    kyzy_yy_pm :多谢啦。可以运行了!
      

  6.   

    我也有同样的问题唉!
    也是装的apache2.2.19, php5.2.17
    只要注释掉这两行就可以运行,不注释就死。。
    #LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
    #PHPIniDir "C:/Program Files/PHP"
    下面是error.log
    求大侠帮帮忙啊!The Apache2.2 service is restarting.
    Starting the Apache2.2 service
    [Wed Aug 31 12:32:18 2011] [warn] pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    The Apache2.2 service is restarting.
    Failed to restart the Apache2.2 service.
    The Apache2.2 service is restarting.
    Starting the Apache2.2 service
    The Apache2.2 service is running.
    pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    Starting the Apache2.2 service
    The Apache2.2 service is running.
    pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    Starting the Apache2.2 service
    The Apache2.2 service is running.
    pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Wed Aug 31 12:34:35 2011] [notice] Apache/2.2.19 (Win32) configured -- resuming normal operations
    [Wed Aug 31 12:34:35 2011] [notice] Server built: May 20 2011 17:39:35
    [Wed Aug 31 12:34:35 2011] [notice] Parent: Created child process 5196
    [Wed Aug 31 12:34:35 2011] [notice] Disabled use of AcceptEx() WinSock2 API
    [Wed Aug 31 12:34:35 2011] [notice] Child 5196: Child process is running
    [Wed Aug 31 12:34:35 2011] [notice] Child 5196: Acquired the start mutex.
    [Wed Aug 31 12:34:35 2011] [notice] Child 5196: Starting 64 worker threads.
    [Wed Aug 31 12:34:35 2011] [notice] Child 5196: Listening on port 80.
    [Wed Aug 31 12:38:02 2011] [notice] Parent: Received restart signal -- Restarting the server.
    [Wed Aug 31 12:38:02 2011] [notice] Child 5196: Exit event signaled. Child process is ending.
    [Wed Aug 31 12:38:02 2011] [notice] Apache/2.2.19 (Win32) configured -- resuming normal operations
    [Wed Aug 31 12:38:02 2011] [notice] Server built: May 20 2011 17:39:35
    [Wed Aug 31 12:38:02 2011] [notice] Parent: Created child process 7996
    [Wed Aug 31 12:38:02 2011] [notice] Disabled use of AcceptEx() WinSock2 API
    [Wed Aug 31 12:38:02 2011] [notice] Child 7996: Child process is running
    [Wed Aug 31 12:38:03 2011] [notice] Child 7996: Acquired the start mutex.
    [Wed Aug 31 12:38:03 2011] [notice] Child 5196: Released the start mutex
    [Wed Aug 31 12:38:03 2011] [notice] Child 7996: Starting 64 worker threads.
    [Wed Aug 31 12:38:03 2011] [notice] Child 5196: All worker threads have exited.
    [Wed Aug 31 12:38:03 2011] [notice] Child 7996: Listening on port 80.
    [Wed Aug 31 12:38:03 2011] [notice] Child 5196: Child process is exiting
    [Wed Aug 31 12:38:15 2011] [notice] Parent: Received restart signal -- Restarting the server.
    [Wed Aug 31 12:38:15 2011] [notice] Child 7996: Exit event signaled. Child process is ending.
    [Wed Aug 31 12:38:15 2011] [notice] Apache/2.2.19 (Win32) configured -- resuming normal operations
    [Wed Aug 31 12:38:15 2011] [notice] Server built: May 20 2011 17:39:35
    [Wed Aug 31 12:38:15 2011] [notice] Parent: Created child process 5420
    [Wed Aug 31 12:38:15 2011] [notice] Disabled use of AcceptEx() WinSock2 API
    [Wed Aug 31 12:38:16 2011] [notice] Child 7996: Released the start mutex
    [Wed Aug 31 12:38:16 2011] [notice] Child 7996: All worker threads have exited.
    [Wed Aug 31 12:38:16 2011] [notice] Child 7996: Child process is exiting
    [Wed Aug 31 12:38:27 2011] [crit] (OS 6)The handle is invalid.  : master_main: create child process failed. Exiting.
    [Wed Aug 31 12:38:49 2011] [notice] Apache/2.2.19 (Win32) configured -- resuming normal operations
    [Wed Aug 31 12:38:49 2011] [notice] Server built: May 20 2011 17:39:35
    [Wed Aug 31 12:38:49 2011] [notice] Parent: Created child process 6360
    [Wed Aug 31 12:38:49 2011] [notice] Disabled use of AcceptEx() WinSock2 API
    [Wed Aug 31 12:38:49 2011] [notice] Child 6360: Child process is running
    [Wed Aug 31 12:38:49 2011] [notice] Child 6360: Acquired the start mutex.
    [Wed Aug 31 12:38:49 2011] [notice] Child 6360: Starting 64 worker threads.
    [Wed Aug 31 12:38:49 2011] [notice] Child 6360: Listening on port 80.
    [Wed Aug 31 12:39:04 2011] [notice] Parent: Received restart signal -- Restarting the server.
    [Wed Aug 31 12:39:04 2011] [notice] Child 6360: Exit event signaled. Child process is ending.
    [Wed Aug 31 12:39:04 2011] [notice] Apache/2.2.19 (Win32) configured -- resuming normal operations
    [Wed Aug 31 12:39:04 2011] [notice] Server built: May 20 2011 17:39:35
    [Wed Aug 31 12:39:04 2011] [notice] Parent: Created child process 8176
    [Wed Aug 31 12:39:04 2011] [notice] Disabled use of AcceptEx() WinSock2 API
    [Wed Aug 31 12:39:05 2011] [notice] Child 6360: Released the start mutex
    [Wed Aug 31 12:39:05 2011] [notice] Child 6360: All worker threads have exited.
    [Wed Aug 31 12:39:05 2011] [notice] Child 6360: Child process is exiting
    [Wed Aug 31 12:39:11 2011] [crit] (OS 6)The handle is invalid.  : master_main: create child process failed. Exiting.
      

  7.   


    在cmd 模式下输入 netsh winsock reset 记得要管理员权限
    然后重启apache.