#23603 [Opn->Fbk]: php install problem on IIS:path_info ISAPI and CGI
| From: | sniper@php.net | Date: | Tue, 13 May 2003 21:29:21 +0000 |
| Subject: | #23603 [Opn->Fbk]: php install problem on IIS:path_info ISAPI and CGI | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39561@lists.php.net to get a copy of this message | ||
ID: 23603
Updated by: sniper@php.net
Reported By: chedong at hotmail dot com
-Status: Open
+Status: Feedback
Bug Type: IIS related
Operating System: WINDOWS 2000
PHP Version: 4.3.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
IIRC, this is fixed..
Previous Comments:
------------------------------------------------------------------------
[2003-05-13 09:00:37] chedong at hotmail dot com
in php 4.2.3 isapi mode the path_info convert to real path:
if my iis doc root at:
C:\CheDong\Downloads\ariadne\www\
the http://localhost/test.php/path will return with
Warning: Unknown(C:\CheDong\Downloads\ariadne\www\test.php\path):
failed to create stream: No such file or directory in Unknown on line
0
Warning: Unknown(): Failed opening
'C:\CheDong\Downloads\ariadne\www\test.php\path' for inclusion
(include_path='.;c:\php4\pear') in Unknown on line 0
patched with
ftp://ftp.muze.nl/pub/ariadne/win/iis/php-4.2.3/php4isapi.dll
the phpinfo returns with
PATH_INFO /test.php/path
_SERVER["PATH_INFO"] /path
------------------------------------------------------------------------
[2003-05-13 08:42:30] chedong at hotmail dot com
additional on Ariadne patch:
the Ariadne patch only work with php 4.2.3 Win32 and need
AllowPathInfoForScriptMappings
False
4.3.1 not work even with Ariadne patch:
ftp://ftp.muze.nl/pub/ariadne/win/iis/php-4.3.1/
------------------------------------------------------------------------
[2003-05-13 07:08:13] chedong at hotmail dot com
test.php:
<?
php phpinfo();
?>
according to:
http://support.microsoft.com/default.aspx?scid=kb;en-us;q184320
I enabled IIS's path_info support via:
c:\inetpub\AdminScripts\adsutil set
w3svc/AllowPathInfoForScriptMappings True
c:\inetpub\AdminScripts\adsutil set
w3svc/1/AllowPathInfoForScriptMappings True
1 Install php 4.3.1 with installer.exe
http://localhost/test.php ok
http://localhost/test.php/path returned with
CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:
same with php 4.2.3 with installer.exe
2 I also tried with 4.2.3 4.0.6 with ISAPI mode and all failed:
In ISAPI installation according to notes on:
http://ariadne.muze.nl/en/download/install
(ariadne is a path_info base php Content Manage System.)
but path_into parsed and shows:
Warning: Failed opening 'c:\inetpub\wwwroot\path' for inclusion
(include_path='') in Unknown on line 0
if patched with:
ftp://ftp.muze.nl/pub/ariadne/win/iis/php-4.0.6/php4isapi.dll
the return error with:
PHP has encountered an Access Violation at 77FCB5BF
and couse IIS crashed.
3 I tried php 4.3.1 with:
cgi.fix_pathinfo=0
in php.ini
seem it only work with acWeb 3.0 not IIS 5.0
http://php430.eserv.ru/php_info.php/path/info
Regards
Che, Dong
http://www.chedong.com
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23603&edit=1