Apache-2.2

在 Windows 上安裝 Apache 做作業,無法啟動:“請求的操作失敗!”

  • November 17, 2011

所以我只是設置了 Apache 來做一些網路作業。當我轉到http://localhost時,它顯示“它有效!” 但是當我到達http://localhost/index.html(該頁面的位置)時,我收到“無法連接”錯誤(Firefox)。當我去http://localhost/test.php時也一樣

當我打開 Apache Monitor 時,我點擊開始,然後點擊是 UAC 後顯示“請求的操作失敗!”

這是錯誤日誌:

Starting the Apache2.2 service
The Apache2.2 service is running.
] Apache/2.2.21 (Win32) configured -- resuming normal operations
[Thu Nov 17 11:16:19 2011] [notice] Server built: Sep  9 2011 10:26:10
[Thu Nov 17 11:16:19 2011] [notice] Parent: Created child process 2496
[Thu Nov 17 11:16:19 2011] [notice] Child 2496: Child process is running
[Thu Nov 17 11:16:19 2011] [notice] Child 2496: Acquired the start mutex.
[Thu Nov 17 11:16:19 2011] [notice] Child 2496: Starting 64 worker threads.
[Thu Nov 17 11:16:19 2011] [notice] Child 2496: Starting thread to listen on port 80.
[Thu Nov 17 11:19:10 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/favicon.ico
[Thu Nov 17 11:19:10 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/favicon.ico
[Thu Nov 17 11:19:10 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/favicon.ico
[Thu Nov 17 11:36:13 2011] [notice] Parent: Received restart signal -- Restarting the server.
[Thu Nov 17 11:36:13 2011] [notice] Child 2496: Exit event signaled. Child process is ending.
httpd.exe: Syntax error on line 129 of C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/php/php5apache2_2.dll into server: The specified module could not be found.  
[Thu Nov 17 11:36:13 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 Nov 17 11:36:14 2011] [notice] Child 2496: Released the start mutex
[Thu Nov 17 11:36:15 2011] [notice] Child 2496: All worker threads have exited.
[Thu Nov 17 11:36:15 2011] [notice] Child 2496: Child process is exiting

以管理員身份執行 Apache或禁用 UAC。Apache 的執行緒受到作業系統的限制。

引用自:https://serverfault.com/questions/332087