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


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to