From: mazsolt at yahoo dot com Operating system: Windows 2000 Server PHP version: 4.3.5 PHP Bug Type: *Configuration Issues Bug description: Where should my php.ini file be located? - Apache
Description: ------------ hello, according to the documentation, --> "If you're using the Apache webserver, php.ini is first searched in the Apaches install directory, e.g. c:\program files\apache group\apache. This way you can have different php.ini files for different versions of Apache on the same machine." <-- I'm using Windows 2000 Server, with Apache 2.0. I run PHP as CGI. I already have a php.ini (let's name it ini-A) in C:\Winnt, and it works fine. I tried to add a php.ini to the program files/apache group/apache folder. in this ini file (ini-B) i changed a directive: max execution time = 40 Within ini - A, this option has the value of 30. Now I run a script, which contains a single line: phpinfo(). I looked for the "max execution time" value, and it was 30!!!! I restarted the server, than the PC, but I got the same value.... within the general options from the returned phpinfo() table, the Configuration File (php.ini) Path has the value of "C:\WINNT\php.ini". Is it a bug, or I need to recompile my PHP? Or the above apache-ini file combination (to search first the apache install directory) works only on UNIX???? -- Edit bug report at http://bugs.php.net/?id=27872&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27872&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27872&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27872&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27872&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27872&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27872&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27872&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27872&r=support Expected behavior: http://bugs.php.net/fix.php?id=27872&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27872&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27872&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27872&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27872&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27872&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27872&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27872&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27872&r=float