php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27872 Where should my php.ini file be located? - Apache
Submitted: 2004-04-05 12:49 UTC Modified: 2004-04-05 13:15 UTC
From: mazsolt at yahoo dot com Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 4.3.5 OS: Windows 2000 Server
Private report: No CVE-ID: None
 [2004-04-05 12:49 UTC] mazsolt at yahoo dot com
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???? 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-05 13:15 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 02 14:01:31 2024 UTC