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

Thanks, it turns out you're technically correct.

The problem was that the config file I was using was for PHP 4. This
was because the HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath registry
key (PHP 5 only) didn't work as I epxtected.

The error message left something to be desired in terms of helpfulness.


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

[2005-03-29 00:45:54] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

..

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

[2005-03-28 19:12:26] peter dot ordal at rochester dot edu

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.

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

[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