我使用visual studio 10编译器编译了一个fastcgid示例程序以及libfcgid文件。 exe文件正常工作。但是当我尝试使用浏览器通过apache服务器打开exe文件时,经过多次延迟后,浏览器中会显示以下内容。
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-script
任何人都可以帮我解决这个问题吗?提前谢谢。
答案 0 :(得分:0)
最初,我在路径&#C; C:program files'中安装了apache。它在路径中具有空格特征。这就是造成这个错误的原因。所以我卸载了apache并重新安装在c盘中,因此安装文件夹是C:apache2.2。这解决了错误。