I'm trying to host a Wordpress website on IIS 6. It mostly works, but form submission using Contact Form 7 fails (the progress indicator keeps spinning but nothing happens).
Wireshark shows the following error message:
The FastCGI Handler was unable to process the request.
Error Details:
- Error Number: 10054 (0x80072746).
- Error Description: An existing connection was forcibly closed by the remote host.
The full exchange is included underneath this post.
Do you know any reason why this might happen? I already updated PHP to the latest versions and tried restarting IIS several times.
Given that FastCGI communicates with the handler over a socket, I assume this error means the PHP process crashed? If so, is there some way to find out why?
I'm running the following software:
- Windows Server 2003 R2 x64 SP2
- IIS 6
- PHP 5.3.9 (installed using Microsoft's web platform installer, if I use the installer from php.net I only get 404 error messages)
- Wordpress 3.2.1
- Contact Form 7 3.0.2.1
- MySQL 5.5.15 (though I can't imagine that matters here)
HTTP/1.1 500 Server Error
Date: Sat, 21 Jan 2012 14:45:48 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Type: text/html
Content-Length: 835
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>FastCGI Error</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<STYLE type="text/css">
BODY { font: 8pt/12pt verdana }
H1 { font: 13pt/15pt verdana }
H2 { font: 8pt/12pt verdana }
A:link { color: red }
A:visited { color: maroon }
</STYLE>
</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>
<h1>FastCGI Error</h1>
The FastCGI Handler was unable to process the request.
<hr>
<p>Error Details:</p>
<ul>
<li>Error Number: 10054 (0x80072746).</li>
<li>Error Description: An existing connection was forcibly closed by the remote host.
</li>
</ul>
<h2>HTTP Error 500 - Server Error.<br>Internet Information Services (IIS)</h2>
</TD></TR></TABLE></BODY></HTML>
I realize that Wordpress on IIS is a bad idea, but unfortunately someone made this site not realizing that it would be running on Windows+IIS. Since they know nothing about Windows they can't help us set it up either. We need to have this running on Windows+IIS
as some ASP.NET aplpications run on the same IP address with only a different hostname.
However, we have already gotten to the point where it work almost entirely. This is the only problem we have with it currently.
The properties sheets for the website do not list any ISAPI filters, but URL rewriting does work. This is the web.config I've used to achieve this:
IIS and MySQL are running on the same machine so I can't see any of the communication between them, the captured traffic is the interaction between my browser (on a different machine) and IIS. I think MySQL is working fine as Wordpress stores all it's pages
in the MySQL database and those can be retrieved (and even edited, using the admin interface).
I haven't edited php.ini, so there's only the default settings in there.
The 404 error only occurred when I used php.net's installer, not with Microsoft's installer so that isn't an issue for me unless there is some reason not to use Microsoft's version.
I have been using Microsoft's PHP package version 5.2.17.17 before, which had exactly the same issue as this version (this is the reason why I upgraded). Before I installed the new version I uninstalled the one, so I should have onyl 5.3.9 now.
The IIS log file doesn't list anything interesting, but I realize now that the 500 server error response is missing there. This is strange, I guess the requests may be going to the wrong server even though Wireshark shows them having the right IP address, TCP
port (80) and Host header. The Window Event Log does not tell me anything about the error either.
erikvdk
2 Posts
The FastCGI Handler was unable to process the request: An existing connection was forcibly closed...
Jan 21, 2012 02:05 PM|LINK
I'm trying to host a Wordpress website on IIS 6. It mostly works, but form submission using Contact Form 7 fails (the progress indicator keeps spinning but nothing happens).
Wireshark shows the following error message:
The FastCGI Handler was unable to process the request.
Error Details:
- Error Number: 10054 (0x80072746).
- Error Description: An existing connection was forcibly closed by the remote host.
The full exchange is included underneath this post.
Do you know any reason why this might happen? I already updated PHP to the latest versions and tried restarting IIS several times.
Given that FastCGI communicates with the handler over a socket, I assume this error means the PHP process crashed? If so, is there some way to find out why?
I'm running the following software:
- Windows Server 2003 R2 x64 SP2
- IIS 6
- PHP 5.3.9 (installed using Microsoft's web platform installer, if I use the installer from php.net I only get 404 error messages)
- Wordpress 3.2.1
- Contact Form 7 3.0.2.1
- MySQL 5.5.15 (though I can't imagine that matters here)
Thanks for any help.
With kind regards,
Erik
POST /offerte/ HTTP/1.1
Referer: http://www.XXXXXXXXX.nl/offerte/
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Accept: application/json, text/javascript, */*
Accept-Language: nl
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Host: www.XXXXXXXXX.nl
Content-Length: 308
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: qtrans_cookie_test=qTranslate+Cookie+Test
_wpcf7=762&_wpcf7_version=3.0.2.1&_wpcf7_unit_tag=wpcf7-f762-p33-o1&bedrijfsnaam=x&contactpersoon=x&adres=&postcode=&woonplaats=&telefoonnummer=&emailadres=x&website=&aantalorders=&aantalartikelen=&soortproduct=&verzending=NL&toelichting=&_wpcf7_is_ajax_call=1
HTTP/1.1 500 Server Error
Date: Sat, 21 Jan 2012 14:45:48 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Type: text/html
Content-Length: 835
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>FastCGI Error</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<STYLE type="text/css">
BODY { font: 8pt/12pt verdana }
H1 { font: 13pt/15pt verdana }
H2 { font: 8pt/12pt verdana }
A:link { color: red }
A:visited { color: maroon }
</STYLE>
</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>
<h1>FastCGI Error</h1>
The FastCGI Handler was unable to process the request.
<hr>
<p>Error Details:</p>
<ul>
<li>Error Number: 10054 (0x80072746).</li>
<li>Error Description: An existing connection was forcibly closed by the remote host.
</li>
</ul>
<h2>HTTP Error 500 - Server Error.<br>Internet Information Services (IIS)</h2>
</TD></TR></TABLE></BODY></HTML>
FastCGI Wordpress php 5 IIS 6.0
HCamper
8048 Posts
Re: The FastCGI Handler was unable to process the request: An existing connection was forcibly cl...
Jan 22, 2012 05:31 AM|LINK
Hello,
Your going to host a Wordpress Blog on IIS 6 using Windows Server 2003 R2 x64 SP2.
Looks like at lot of problems with settings and configuration.
Do you have ISAPI rewrite installed for WordPress ?
What Wireshark shows is a possble network problems MySQL Server or host name ?
http://learn.iis.net/page.aspx/280/install-wordpress-on-iis/ Word Press on IIS Server general guide.
Your getting 404 errors http://blogs.iis.net/tomkmvp/archive/2009/04/27/troubleshooting-a-404.aspx Tom's Guide.
How many installs for PHP and versions ?
You updated the PHP to latested version(s) tried restarting IIS several times.
http://forums.iis.net/t/1186168.aspx "PHP update to 5.3.9"
http://forums.iis.net/t/1185911.aspx user post about update problems.
Check the php.ini settings http://learn.iis.net/page.aspx/724/install-and-configure-php/
You can post the php.ini extensions section to be checked.
Feel free to post the detailed status codes from the IIS Sever logs.
Martin
Community Member Award 2011
erikvdk
2 Posts
Re: The FastCGI Handler was unable to process the request: An existing connection was forcibly cl...
Jan 22, 2012 06:15 AM|LINK
Thanks for your response.
I realize that Wordpress on IIS is a bad idea, but unfortunately someone made this site not realizing that it would be running on Windows+IIS. Since they know nothing about Windows they can't help us set it up either. We need to have this running on Windows+IIS as some ASP.NET aplpications run on the same IP address with only a different hostname.
However, we have already gotten to the point where it work almost entirely. This is the only problem we have with it currently.
The properties sheets for the website do not list any ISAPI filters, but URL rewriting does work. This is the web.config I've used to achieve this:
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="wordpress" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
IIS and MySQL are running on the same machine so I can't see any of the communication between them, the captured traffic is the interaction between my browser (on a different machine) and IIS. I think MySQL is working fine as Wordpress stores all it's pages in the MySQL database and those can be retrieved (and even edited, using the admin interface).
I haven't edited php.ini, so there's only the default settings in there.
The 404 error only occurred when I used php.net's installer, not with Microsoft's installer so that isn't an issue for me unless there is some reason not to use Microsoft's version.
I have been using Microsoft's PHP package version 5.2.17.17 before, which had exactly the same issue as this version (this is the reason why I upgraded). Before I installed the new version I uninstalled the one, so I should have onyl 5.3.9 now.
The IIS log file doesn't list anything interesting, but I realize now that the 500 server error response is missing there. This is strange, I guess the requests may be going to the wrong server even though Wireshark shows them having the right IP address, TCP port (80) and Host header. The Window Event Log does not tell me anything about the error either.
With kind regards,
Erik
HCamper
8048 Posts
Re: The FastCGI Handler was unable to process the request: An existing connection was forcibly cl...
Jan 22, 2012 07:14 AM|LINK
Hi Erik,
Wordpress is not a "Bad Idea" on IIS server it required configuration.
The person who made this site was not aware about Windows and IIS Server.
You need access to the php.ini file to make this work correctly.
The information your getting from Wireshark for the most part is of no use.
The PHP install and settings are 80 % of the problems for the WordPress install.
The rewrite rules and web.config might work is the PHP is working correctly.
Regards,
Martin
Community Member Award 2011