#21158 [Opn]: -c path/to/php.ini not available is iis5
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
#21157 [Opn->Bgs]: registry per directory entries ignored
ID: 21157 User updated by: [EMAIL PROTECTED] -Summary: when ini settings are changable needs to be further documented Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus -Bug Type: Documentation problem +Bug Type: IIS related Operating System: windows 2000 sp3 -PHP Version: 4.4.0-dev +PHP Version: 4.2.3 New Comment: Thank you for the pointer. Previous Comments: [2002-12-23 10:54:26] [EMAIL PROTECTED] Assuming that 'registry per directory' is an option similar to .htaccess for IIS, it's worth mentioning that for example safe_mode is listed as PHP_INI_SYSTEM so it can be set in httpd.conf or php.ini but not .htaccess (or whatever IIS uses). You will notice at php.net/ini_set that some options are PHP_INI_SYSTEM|PHP_INI_PERDIR and some are PHP_INI_ALL, those can be set per directory. This 'when changable' information should be mentioned within every configuration description in the manual as opposed to only in the ini_set() docs. Or at least pointed somewhere. That said, am marking this as a documentation problem. Also note that equivelents for apache's httpd.conf and .htaccess should be mentioned somewhere too, not sure where (yet). [2002-12-23 10:43:13] [EMAIL PROTECTED] http://www.php.net/manual/en/function.ini-set.php Contains a comprehensive list of ini settings and it tells you whether a particular ini setting can be set per directory or not. [2002-12-23 10:41:51] [EMAIL PROTECTED] Thanks for the comments but I lodged the report *after* reading anything relevant in the docs I could find. I could find nothing about the 'registry per directory' win32 registry functionality but it exists. Where would I find info explaining which php.ini options are accepted for this function? I would be happy to accept any specific pointers to relevant docs from more knowledgable people than myself. [2002-12-23 10:34:19] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Options such as safe_mode, expose_php, etc.. can only be set via PHP.ini and are NOT 'per directory'. [2002-12-22 23:12:24] [EMAIL PROTECTED] When making use of the 'registry per directory' option to set per directory php.ini entries it would appear that only selected options from php.ini are parsed in this registry section. For example error_log and sendmail_from entries are parsed but safe_mode, user_dir, expose_php, smtp, doc_root are ignored when here. -- Edit this bug report at http://bugs.php.net/?id=21157&edit=1
#21157 [Bgs]: registry per directory entries ignored
ID: 21157 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: IIS related Operating System: windows 2000 sp3 PHP Version: 4.2.3 New Comment: Thanks for the comments but I lodged the report *after* reading anything relevant in the docs I could find. I could find nothing about the 'registry per directory' win32 registry functionality but it exists. Where would I find info explaining which php.ini options are accepted for this function? I would be happy to accept any specific pointers to relevant docs from more knowledgable people than myself. Previous Comments: [2002-12-23 10:34:19] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Options such as safe_mode, expose_php, etc.. can only be set via PHP.ini and are NOT 'per directory'. [2002-12-22 23:12:24] [EMAIL PROTECTED] When making use of the 'registry per directory' option to set per directory php.ini entries it would appear that only selected options from php.ini are parsed in this registry section. For example error_log and sendmail_from entries are parsed but safe_mode, user_dir, expose_php, smtp, doc_root are ignored when here. -- Edit this bug report at http://bugs.php.net/?id=21157&edit=1
#21158 [NEW]: -c path/to/php.ini not available is iis5
From: [EMAIL PROTECTED] Operating system: windows 2000 sp3 PHP version: 4.2.3 PHP Bug Type: IIS related Bug description: -c path/to/php.ini not available is iis5 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 bug report at http://bugs.php.net/?id=21158&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21158&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21158&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21158&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21158&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21158&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=21158&r=support Expected behavior: http://bugs.php.net/fix.php?id=21158&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=21158&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=21158&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21158&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21158&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21158&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21158&r=isapi
#21157 [NEW]: registry per directory entries ignored
From: [EMAIL PROTECTED] Operating system: windows 2000 sp3 PHP version: 4.2.3 PHP Bug Type: IIS related Bug description: registry per directory entries ignored When making use of the 'registry per directory' option to set per directory php.ini entries it would appear that only selected options from php.ini are parsed in this registry section. For example error_log and sendmail_from entries are parsed but safe_mode, user_dir, expose_php, smtp, doc_root are ignored when here. -- Edit bug report at http://bugs.php.net/?id=21157&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21157&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21157&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21157&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21157&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21157&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=21157&r=support Expected behavior: http://bugs.php.net/fix.php?id=21157&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=21157&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=21157&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21157&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21157&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21157&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21157&r=isapi