#28448 [Com]: php.ini location change to enable multiple versions of PHP
| From: | peter dot ordal at rochester dot edu | Date: | Tue, 05 Apr 2005 20:54:37 +0000 |
| Subject: | #28448 [Com]: php.ini location change to enable multiple versions of PHP | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969367791@lists.php.net to get a copy of this message | ||
ID: 28448
Comment by: peter dot ordal at rochester dot edu
Reported By: gidmanma at hotmail dot com
Status: Open
Bug Type: Documentation problem
Operating System: Windows Server 2003
PHP Version: Irrelevant
New Comment:
I'm not seeing this behavior. I followed the instructions exactly but
php never seems to check its directory for php.ini. I watched where it
was looking with FileMon (systeminternals.com) and it looked in the web
server folder, and c:\windows, but not its own folder (both 4 and 5).
When PHP didn't find php.ini in either of those locations, it just
reverted to using default values.
Previous Comments:
------------------------------------------------------------------------
[2004-05-19 22:12:14] wez@php.net
You can easily acheive it this way:
install PHP 4 to C:\php4
put your PHP 4 specific php.ini file into C:\php4
rearrange the contents of that folder so that all the .dll files from
the dlls and extensions folders live in C:\php4.
Make sure your extensions_dir=c:\php4 in your c:\php4\php.ini
[this creates a self-contained PHP 4 distro]
install PHP 5 to C:\php5
put your PHP 5 specific php.ini into C:\php5\php.ini
move all the extension .dlls into C:\php5
[this creates a self-contained PHP 5 distro]
Make sure that NEITHER C:\php4 nor C:\php5 are listed in your PATH.
Remove all PHP related DLLs from your windows system directly.
Remove the global php.ini from C:\windows\php.ini
[this removes global stuff that might confuse things]
Making this a docu problem, since we should have it mentioned
somewhere.
------------------------------------------------------------------------
[2004-05-19 20:57:07] gidmanma at hotmail dot com
Description:
------------
IIS 6.0 on Windows Server 2003 allows seperate MIME mappings for each
web site on the server. Using site specific MIME mappings I am running
both PHP 4.3.6 and PHP 5.0.0 RC2 (both in ISAPI) at the same time on the
same server. The only problem is that there is no way to specify a
seperate php.ini for each version of PHP installed.
Can something be changed in PHP that either causes it to look for the
ini in the same folder/directory as the dll? Or, is there another way
around this problem?
TIA
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28448&edit=1