Original Post
Hi all. Ive recently had to setup a production server in which i needed two instances of Apache, PHP, and MySQL on Windows. Im not new to the installation procedure however ive run into some weird issues with getting two separate instances of PHP to properly use a local PEAR configuration instead of a system wide configuration. Needless to say, I have two PHP setups - PHP1 & PHP2. Im using Apache 2.2.8 and PHP 5.2.5 running as an apache module. Each PHP configuration is setup and works ok with its respective Apache setup. The issue comes when I configure PEAR as follows: 1. Set cwd to PHP1 2. Run go-pear.bat 3. Run setup as local with all directories set to be in PHP1. Once this is complete it works as expected and when i run "pear config-show" both pear.ini and pearsys.ini show as being in PHP1. However once I run "pear upgrade-all" to get the latest version of PEAR, after the upgrade is complete it switches back to what seems to be a system wide installation. When I check "pear config-show" it shows pear.ini and pearsys.ini as being in C:\WINDOWS and only some of the parameters are properly pointing to PHP1... Has anyone had similar issues with a local install?