#35178 [Opn->Bgs]: PHPRC and Apache 1.x VirtualHosts, RE: Bug #29694
| From: | sniper@php.net | Date: | Thu, 10 Nov 2005 11:21:34 +0000 |
| Subject: | #35178 [Opn->Bgs]: PHPRC and Apache 1.x VirtualHosts, RE: Bug #29694 | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969370832@lists.php.net to get a copy of this message | ||
ID: 35178
Updated by: sniper@php.net
Reported By: chris_petersen at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: Windows 2000
PHP Version: Irrelevant
New Comment:
This is simply misunderstanding. It's not possible to have different
PHPRC environment variables for different virtualhosts.
And "SetEnv PHPRC" is NOT the way to set it.
That is an Apache environment variable, not the system environment PHP
uses.
And it's documented properly now -> bogus.
Previous Comments:
------------------------------------------------------------------------
[2005-11-09 23:19:57] chris_petersen at hotmail dot com
Description:
------------
The bug reports and updated documentation for PHP 5 state that the
PHPRC variable should no longer be set by Apache 1.x but as a system
environment variable instead. What the documentation fails to describe
is how the environment variable is to be configured for each Apache 1.x
Virtual Host, each with it's own PHP configuration. It appears to me
that this PHPRC issue really is a bug and not a documentation issue. It
is unreasonable that multiple hosts should share the same php.ini file.
Workarounds are to upgrade Apache 1.x to 2.x (not recommended) or roll
back to PHP 4.
Reproduce code:
---------------
The "SetEnv PHPRC" in a Apache 1.x httpd.conf file will not be read by
PHP5. This can easily be proven using phpinfo().
Expected result:
----------------
There must be a documented method of providing a seperate php.ini for
each Apache 1.x virtual host.
Actual result:
--------------
The documentation states that the variable should be set as a system
wide environment variable. The documentation fails to state how this
should be done when there is more than one virtual host which requires
more than one php.ini file.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35178&edit=1