[web] [PHP] PEAR Configuration Problems
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?
I don't have any experience trying to run two instances of everything on a single system. But, why do you need two of everything to begin with?
Our production and development site are on the same server since it is the only one we have. The reason we create two unique setups is that it allows us to do development and be able to modify configuration settings on everything without affecting or needing to restart the production site. It also helps in upgrading by allowing us to test new versions of Apache/PHP and get them properly configured for our site before migrating them over to production.
Sorry, I can't help you here. My solution would be to get a second server (the dev server probably doesn't have to be powerful so you can use an older machine) or use virtualization to build two or more servers. I use Linux so extra OS instances don't cost me anything :-)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement