For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > May 2004 > #28448 [Opn]: php.ini location change to enable multiple versions of PHP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #28448 [Opn]: php.ini location change to enable multiple versions of PHP
wez@php.net

2004-05-19, 5:31 pm

ID: 28448
Updated by: wez@php.net
Reported By: gidmanma at hotmail dot com
Status: Open
-Bug Type: Feature/Change Request
+Bug Type: Documentation problem
Operating System: Windows Server 2003
PHP Version: Irrelevant
New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com