ID:               32459
 User updated by:  peter dot ordal at rochester dot edu
 Reported By:      peter dot ordal at rochester dot edu
-Status:           Feedback
+Status:           Open
 Bug Type:         IIS related
 Operating System: Windows Server 2003
 PHP Version:      5.0.3
 New Comment:

I gave CVS a try, but the problem persists.

If I use the "working" document root I get the version string
5.1.0-dev, just for confirmation.


Previous Comments:
------------------------------------------------------------------------

[2005-03-25 23:33:42] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip



------------------------------------------------------------------------

[2005-03-25 23:11:02] peter dot ordal at rochester dot edu

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 this bug report at http://bugs.php.net/?id=32459&edit=1

Reply via email to