php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37903 File not found bug if virtual dir name different than file system name
Submitted: 2006-06-24 06:55 UTC Modified: 2006-07-27 01:26 UTC
From: dragos dot matachescu at enterprise-concept dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 5.1.4 OS: Windows XP SP2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dragos dot matachescu at enterprise-concept dot com
New email:
PHP Version: OS:

 

 [2006-06-24 06:55 UTC] 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 



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-24 08:41 UTC] 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-25 11:00 UTC] dragos dot matachescu at enterprise-concept dot com
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).
 [2006-07-27 01:26 UTC] sniper@php.net
rename the dir. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 02:01:31 2024 UTC