ID: 21158 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open -Bug Type: Documentation problem +Bug Type: IIS related Operating System: windows 2000 sp3 PHP Version: 4.2.3 New Comment:
The only way around this problem is to run multiple copies of php ( >= 4.3.0) and keep the php.ini in the same directory as the php binary. This way the correct php.ini is loaded for the correct instance. Now it is possible to give each IIS Virtual server their 'own' copy of php and keep them in their own sandpits. Not really the solution I was looking for but can live with it. Previous Comments: ------------------------------------------------------------------------ [2002-12-26 21:35:06] [EMAIL PROTECTED] Can't get it working with 4.2.3 or 4.3.0 and I have tried using c:\php\php.exe -c "d:\phpsite1" and also with specifying the php.ini file directly in "c:\php\php.exe -c "d:\phpsite1\php.ini" which also does not work. I have been checking the php.ini variables with phpinfo after each change and seeing no difference. It keeps coming back with the php.ini file is c:\winnt\php.ini and checking variables like SMTP which is different in both files shows the new php.ini is not being used. In regards the other post about the news article - this does not apply as php.ini can specify all config variables and the 'registry per directory' method is very limited as to changes that can be made. ..petar ------------------------------------------------------------------------ [2002-12-26 20:25:58] [EMAIL PROTECTED] Are you sure you're just passing a directory name? Like -c "c:\myinifiles\site7" which does not include "php.ini" itself? In 4.3.0 you can pass the filename as well as the dir name, but that didn't work in previous versions. ------------------------------------------------------------------------ [2002-12-23 02:47:17] [EMAIL PROTECTED] There is a news entry for PHP 4.0 RC1: Modified the registry INI entry reader (Win32) to work with drive letters. For example, if you wish to wish to specify INI entries for C:\foo\bar, you should create HKLM\PHP\Per Directory Values\C\foo\bar in the registry, and add string values for each directive you want to override in this directory (Zeev) I didn't find any more documentation. This should be marked as documentation bug. ------------------------------------------------------------------------ [2002-12-22 23:15:01] [EMAIL PROTECTED] The '-c path/to/php.ini' command line option can not be passed to IIS in the php script mapping and as a result seperate php.ini files can not be used to isolate different virtual sites in iis5. Anyone know how to pass this variable to iis to make this work. It is not documented anywhere after extensive search. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21158&edit=1