From: chris_petersen at hotmail dot com Operating system: Windows 2000 PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: PHPRC and Apache 1.x VirtualHosts, RE: Bug #29694
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 bug report at http://bugs.php.net/?id=35178&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35178&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35178&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35178&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35178&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35178&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35178&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35178&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35178&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35178&r=support Expected behavior: http://bugs.php.net/fix.php?id=35178&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35178&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35178&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35178&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35178&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35178&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35178&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35178&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35178&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35178&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35178&r=mysqlcfg