2015-12-18 40 views
0

我已經使用visual studio 10編譯器編譯了一個fastcgid示例程序和libfcgid文件。該exe文件正常工作。但是當我嘗試通過apache服務器使用瀏覽器打開exe文件時,經過很長時間後,瀏覽器中顯示以下內容。mod_fcgid:無法運行C:/ Program

Service Temporarily Unavailable 
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. 

Apache的日誌文件包含以下錯誤:

[error] (OS 2)The system cannot find the file specified. : mod_fcgid: can't run C:/Program 
[warn] (OS 2)The system cannot find the file specified. : mod_fcgid: spawn process C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/test/fcgitest.exe error 
[warn] [client 127.0.0.1] mod_fcgid: can't apply process slot for C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/test/fcgitest.exe 

我已經注意到了發生錯誤時,我在httpd.conf中包括以下行

SetHandler fcgid腳本

任何人都可以幫我解決這個問題嗎?提前致謝。

回答

0

最初,我在路徑'C:program files'中安裝了apache。它具有路徑中的空間特徵。這是這個錯誤的原因。所以我卸載了apache並重新安裝到了c盤,這樣安裝文件夾就是C:apache2.2。這解決了錯誤。

相關問題