Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/299.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
IIS上以PHP作为FastCGI的Webservice_Php_Web Services_Iis 7_Fastcgi - Fatal编程技术网

IIS上以PHP作为FastCGI的Webservice

IIS上以PHP作为FastCGI的Webservice,php,web-services,iis-7,fastcgi,Php,Web Services,Iis 7,Fastcgi,我使用Zend_Soap创建了PHP web服务。在apache或IIS7上,PHP模块作为CGI,一切都正常工作。但若我将PHP配置为FastCGI,对web服务的每一秒请求都会产生400个请求响应 我通过wireshark嗅到以下错误消息通信: POST /JaR/soapTest/Service.php HTTP/1.1 Content-Type: text/xml; charset=utf-8 VsDebuggerCausalityData: uIDPoyo7FNjw0F

我使用Zend_Soap创建了PHP web服务。在apache或IIS7上,PHP模块作为CGI,一切都正常工作。但若我将PHP配置为FastCGI,对web服务的每一秒请求都会产生400个请求响应

我通过wireshark嗅到以下错误消息通信:

POST /JaR/soapTest/Service.php HTTP/1.1    
Content-Type: text/xml; charset=utf-8    
VsDebuggerCausalityData: uIDPoyo7FNjw0FZJlPkpvI/09dIAAAAA7yLlSSd4sEqSVBHiUG/JW55FahmIOYRAtQ0OUnO49ZoACQAA    
SOAPAction: "http://signia.cz/WebClientCEVO/1.0#QueryByBasicInformation"    
Host: w7pr-xampp-dev:8000    
Content-Length: 971    
Expect: 100-continue    


HTTP/1.1 400 Bad Request    
Content-Type: text/html; charset=us-ascii    
Server: Microsoft-HTTPAPI/2.0    
Date: Thu, 17 Feb 2011 14:03:46 GMT    
Connection: close    
Content-Length: 311    


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">    
<HTML><HEAD><TITLE>Bad Request</TITLE>    
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>    
<BODY><h2>Bad Request</h2>    
<hr><p>HTTP Error 400. The request is badly formed.</p>    
</BODY></HTML>
接下来,我尝试使用fidler2代理检查通信本身,但没有真正成功。当我调用启用代理的web服务时,每次调用都会成功。fidler2还打印出警告,从我的WS发布的响应长度与实际长度不一样(在apache上,长度可以)


有人知道问题出在哪里吗?

请检查FastCGI设置

  • 开放式IIS7管理器
  • 单击服务器并在功能视图中选择FastCGI设置
  • 打开php-cgi.exe属性
  • 检查实例最大请求数,我的设置为10000 您需要在集合属性中添加一些内容
  • 集合对象名称=PHP\u FCGI\u MAX\u请求 集合对象值=10000


    希望一切正常

    您是否安装了IIS 7 Fast CGI管理包?
    MODULE_SET_RESPONSE_ERROR_STATUS 
    ModuleName FastCgiModule 
    Notification 128 
    HttpStatus 500 
    HttpReason Internal Server Error 
    HttpSubStatus 0 
    ErrorCode 2147942401 
    ConfigExceptionInfo  
    Notification EXECUTE_REQUEST_HANDLER 
    ErrorCode Nesprávná funkce. (0x80070001)