Hello,
OS : Windows 2000 Pro
Apache : 1.3.29
PHP : 4.3.6
From the install.txt file :
Usually you would just copy it over to %SYSTEMROOT%\System32.
But if you want to have multiple PHP installations (for
whatever reason) this is a bad idea. For this circumstance the
safest thing is to let php4ts.dll reside in the same directory
where php4apache.dll is loaded from (see point 2 above).
So I wonder how I can have at least 2 PHP installations on a single computer, using a single Apache server.
For example I have 2 domains, http://localhost and http://localhost_magic_quotes_off. The first one would use the default php.ini file, the second one should use a php.ini file where the option magic_quotes_gpc is set to Off :
; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off
How can I make Apache/php4apache.dll use the second php.ini file when the second domain is used ? As it seems Apache only get this configuration file from default paths, I don't know how to force it to get it from somewhere else, specially when it comes to multiple PHP installations :
Where do I have to put the php.ini ?
The php.ini files is only searched in two places:
1) in your Apache installation directory (e.g. c:\apache\apache)
2) in your %SYSTEMROOT% directory.
I decided to place the first one in the Apache installation directory.
I couldn't find anything about multiple installations in the manual.
JM