From:             peter dot ordal at rochester dot edu
Operating system: Windows Server 2003
PHP version:      5.0.3
PHP Bug Type:     IIS related
Bug description:  "No input" if running PHP on secondary site

Description:
------------
I have PHP identically configured for two Web Sites under a single
instance of IIS 6 on Windows Server 2003. In one, which has the identifier
of 1 and runs on port 80, requests to .php files return normally. In the
other, which has the identifier of 136095314 and listens on port 81,
requests to PHP error for both ISAPI and CGI, with these messages:

When using php5isapi.dll: "No input file specified."
When using php-cgi.exe: CGI Error. The specified CGI application
misbehaved by not returning a complete set of HTTP headers.

The two Web Sites have different document roots. This does seem important,
as setting them to have the same document root fixes the issue.
Primary: c:\inetpub\wwwroot
Secondary: c:\inetpub\sandbox

I discovered this bug by first attempting to install PHP 5.0.3 on the
secondary site. This bug is not dependent on the value of the doc_root
variable in php.ini. It can be set correctly, set incorrectly, or unset.
Other bugs suggest fixing doc_root to resolve this error, but I am certain
that the value of the doc_root variable does not impact the error.
Eventually I had no options left but to try PHP 5 on the primary site,
which worked.

Web Service Extensions have been set up to permit both php5isapi.dll and
php-cgi.exe, and the wildcard extension has been Allowed (to be sure this
was not a simple security issue).

In both Web Sites, the PHP configuration under Home Directory ->
Configuration -> Mappings is
Extension: .php
Executable: C:\php-5.0.3-Win32\php-cgi.exe %s or
C:\php-5.0.3-Win32\php5isapi.dll
Verbs: All
Script Engine: Checked
Verify File Exists: Checked

Cache ISAPI Extensions is disabled. I frequently restarted the IIS Admin
service is testing this.

For curious users, I was able to run PHP 5 without impacting PHP 4 with
the instructions attached to this bug:
http://bugs.php.net/bug.php?id=28448. This allows you to keep separate
php.ini files.

Reproduce code:
---------------
<?php

phpinfo();

?>

Expected result:
----------------
Standard PHP info dump.

Actual result:
--------------
"No input file specified.", or, when using php-cgi.exe: CGI Error. The
specified CGI application misbehaved by not returning a complete set of
HTTP headers.

-- 
Edit bug report at http://bugs.php.net/?id=32459&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32459&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32459&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32459&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32459&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32459&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32459&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32459&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32459&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32459&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32459&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32459&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32459&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32459&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32459&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32459&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32459&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32459&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32459&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32459&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32459&r=mysqlcfg

Reply via email to