#37903 [Bgs->Opn]: File not found bug if virtual dir name different than file system name
ID: 37903
User updated by: dragos dot matachescu at enterprise-concept dot com
Reported By: dragos dot matachescu at enterprise-concept dot com
-Status: Bogus
+Status: Open
Bug Type: IIS related
Operating System: Windows XP SP2
PHP Version: 5.1.4
New Comment:
If I remove the .php extension from IIS, restart the service (so
basically I take php out), then this combination works as it should
be:
c:\www\sites\mysite\phpinfo.php
http://locahost/my/phpinfo.php
(I can see in browser the content of the phpinfo.php which is served as
plain text)
The only explanation is that once the IIS fires the php isapi dll,
this one cannot locate the script file if the virtual directory name is
different than the name of the directory in the filesystem. This looks
like a bug to me, even if the guys at support would tell me that there
is a workaround for that (the obvious one being that I should rename
one of the directories so they match).
Previous Comments:
------------------------------------------------------------------------
[2006-06-24 08:41:17] tony2001@php.net
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.
------------------------------------------------------------------------
[2006-06-24 06:55:21] dragos dot matachescu at enterprise-concept dot
com
Description:
------------
I installed 5.1.4 and 5.2 latest, both as isapi and after that as CGI
(not in the same time :)). In each instance, I have a php file located
in
c:\www\sites\mysite\phpinfo.php
and the IIS virtual directory for this is
http://locahost/my/phpinfo.php
With this setup, I get Page Not Found if I try
http://locahost/my/phpinfo.php
However, if I rename either the filesystem directory from mysite to my,
or I create a virtual dir with IIS name mysite instead of my, the php
page is found and runs OK.
So,
c:\www\sites\mysite\phpinfo.php
http://locahost/my/phpinfo.php
DOES NOT WORK (page not found)
c:\www\sites\mysite\phpinfo.php
http://locahost/mysite/phpinfo.php
WORKS
c:\www\sites\my\phpinfo.php
http://locahost/my/phpinfo.php
WORKS
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37903&edit=1
Thread (4 messages)