WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 7 years ago

#5951 closed defect (bug) (invalid)

wp-db.php: The specified CGI application misbehaved by not returning a complete set of HTTP headers.

Reported by: brh Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

On IIS servers, trying to install Wordpress results in an error:

The specified CGI application misbehaved by not returning a complete set of HTTP headers.

The fix (for me) involved this forum thread: http://wordpress.org/support/topic/131976

I needed to use the patched copy of wp-db.php from http://wordpress.pastebin.ca/893007

Once Wordpress is installed, these changes are no longer needed. However, without them you can't install on IIS systems.

Attachments (1)

5951_wp_db_php.txt (12.6 KB) - added by MichaelH 7 years ago.
A suggested fixed wp_db.php that sometimes works and sometimes does not work.

Download all attachments as: .zip

Change History (6)

comment:1 @ryan8 years ago

That adds a mysql_ping() loop that is run before every query. If there are problems connecting to the MySQL server, something else is wrong. If you restore the regular 2.3.3 wpdb, what errors do you see in your error log? Making each query retry connecting to MySQL for 10 seconds is not a good solution.

comment:2 @ryan8 years ago

Perhaps related to #5932.

comment:3 @MichaelH8 years ago

Regarding "The specified CGI application misbehaved by not returning a complete set of HTTP headers." The problem has been observed on a number of hosts, including aruba.it and ixwebhosting.com, since the release of 2.3.

The version of wp-db.php at http://wordpress.pastebin.ca/893007 DID NOT resolve the problem of installing WordPress on an IIS server running with Server API CGI/FastCGI. Using that version of wp-db.php does allow you to get to the install screen where it asks for the Blog Name and email address but clicking the Install WordPress button causes "Error 404 - File or directory not found. Internet Information Services (IIS)" message.

The only solution that seems to work is either upgrading to a Linux host or getting the host to run PHP as an ISAPI extension. Some hosts (e.g. using Plesk) allow the user to set PHP to run as ISAPI extension.

Below is the first part of phpinfo from a recent install attempt at aruba.it

PHP Version 4.4.1

System Windows NT WEBS1040 5.2 build 3790
Build Date Oct 30 2005 12:44:57
Server API CGI/FastCGI

@MichaelH7 years ago

A suggested fixed wp_db.php that sometimes works and sometimes does not work.

comment:5 @mrmist7 years ago

  • Milestone 2.9 deleted
  • Resolution set to invalid
  • Severity changed from critical to normal
  • Status changed from new to closed

No movement, no more reports and most likely a host-level issue as I've completed installs against IIS/Fastcgi without issue. Closing as invalid.

Note: See TracTickets for help on using tickets.