PHP 4.1.2 & Apache's VirtualHost
| From: | Cale Fairchild | Date: | Mon, 04 Mar 2002 02:58:06 +0000 |
| Subject: | PHP 4.1.2 & Apache's VirtualHost | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-6236@lists.php.net to get a copy of this message | ||
I am running PHP as a CGI executable outside the doc_root so I am using
--enable-discard-path but not --force-cgi-redirect.
I am currently trying to upgrade from 4.0.6 to 4.1.2 but found that
although the new php executable works fine in the main site and fine
from a users directory it will not work with scripts called from a
VirtualHost that has a different doc_root path than the default declared
in the Apache conf file. I am running Apache 1.3.22 and have 2 sites
configured, the main site localhost:80 has a doc_root of /www and a
VirtualHost site localhost:8888 has a doc_root of /www/admin, a script
located at /www/admin/tools/scripts/test.php will work fine when called
from http://localhost:80/admin/test.php but when
called from
http://localhost:8888/test.php I get the following
error logged in the
php error log: Unable to open /www/test.php in Unknown on line 0
I was wondering if anyone else has run in to this issue and whether they
have found a solution. Both PHP executables were compiled with the exact
same configuration flags and the new executable runs fine in any other
situation. I submitted a bug report and they tell me that it is a
configuration issue. Please let me know if anyone else can reproduce
this problem and if you find a solution for it.
Thanks.
Cale Fairchild
Computer Science
Brock University