#28448 [Com]: php.ini location change to enable multiple versions of PHP

From: Date: Sun, 13 Mar 2005 17:45:57 +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-969366956@lists.php.net to get a copy of this message
ID: 28448 Comment by: Admin at 24-99-92-156 dot no-ip dot com 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 having the same problem. Based on filemon (http://www.sysinternals.com/ntw2k/source/filemon.shtml) it isn't reading the C:\php4 and C:\php5 dirs at all. 1 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\windows\system32\inetsrv\php-isapi.ini FILE NOT FOUND Attributes: Error 2 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\windows\system32\inetsrv\php-isapi.ini FILE NOT FOUND Attributes: Error 3 12:29:14 PM w3wp.exe:6008 OPEN C:\windows\system32\inetsrv\php-isapi.ini FILE NOT FOUND Options: Open Access: All 4 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\windows\system32\inetsrv\php-isapi.ini FILE NOT FOUND Attributes: Error 5 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\windows\system32\inetsrv\php-isapi.ini FILE NOT FOUND Attributes: Error 6 12:29:14 PM w3wp.exe:6008 OPEN C:\windows\system32\inetsrv\php-isapi.ini FILE NOT FOUND Options: Open Access: All 7 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\WINDOWS\php-isapi.ini FILE NOT FOUND Attributes: Error 8 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\WINDOWS\php-isapi.ini FILE NOT FOUND Attributes: Error 9 12:29:14 PM w3wp.exe:6008 OPEN C:\WINDOWS\php-isapi.ini FILE NOT FOUND Options: Open Access: All 10 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\WINDOWS\php-isapi.ini FILE NOT FOUND Attributes: Error 11 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\WINDOWS\php-isapi.ini FILE NOT FOUND Attributes: Error 12 12:29:14 PM w3wp.exe:6008 OPEN C:\WINDOWS\php-isapi.ini FILE NOT FOUND Options: Open Access: All 13 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\windows\system32\inetsrv\php.ini FILE NOT FOUND Attributes: Error 14 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\windows\system32\inetsrv\php.ini FILE NOT FOUND Attributes: Error 15 12:29:14 PM w3wp.exe:6008 OPEN C:\windows\system32\inetsrv\php.ini FILE NOT FOUND Options: Open Access: All 16 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\windows\system32\inetsrv\php.ini FILE NOT FOUND Attributes: Error 17 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\windows\system32\inetsrv\php.ini FILE NOT FOUND Attributes: Error 18 12:29:14 PM w3wp.exe:6008 OPEN C:\windows\system32\inetsrv\php.ini FILE NOT FOUND Options: Open Access: All 19 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\WINDOWS\php.ini FILE NOT FOUND Attributes: Error 20 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\WINDOWS\php.ini FILE NOT FOUND Attributes: Error 21 12:29:14 PM w3wp.exe:6008 OPEN C:\WINDOWS\php.ini FILE NOT FOUND Options: Open Access: All 22 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\WINDOWS\php.ini FILE NOT FOUND Attributes: Error 23 12:29:14 PM w3wp.exe:6008 QUERY INFORMATION C:\WINDOWS\php.ini FILE NOT FOUND Attributes: Error 24 12:29:14 PM w3wp.exe:6008 OPEN C:\WINDOWS\php.ini FILE NOT FOUND Options: Open Access: All running as cgi won't work, i have to run as isapi. 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

« previous php.doc (#969366956) next »