|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10272 Looks for php script in main folder, not virtual host folder
Submitted: 2001-04-10 16:15 UTC Modified: 2001-04-11 05:12 UTC
From: dantup at yahoo dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.0 OS: Windoze Me
Private report: No CVE-ID: None
 [2001-04-10 16:15 UTC] dantup at yahoo dot com
When I call

rather than running /home/vh1/script.php, it tries /home/script.php (/home is where http://localhost/ goes).

I've seen a few posts about this in the phpbuilder archives, but no solution, and I can't find anything in these bug reports. I'm not sure if it's Apache not passing on the right filename, of a problem with php.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-11 05:12 UTC] dantup at yahoo dot com
I figured this out. It's not really a bug, just something strange. When you set the documentroot in php.ini, all pages are read from there, ignoring any virtualhosts, I don't know why, it seems stupid. So, as soon as I removed the value from there (leaving it blank), it worked fine. :)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 22 19:01:29 2024 UTC