#31867 [Opn->Bgs]: PHP does not read my php.ini which is in "Configuration File (php.ini) Path"
| From: | rasmus@php.net | Date: | Mon, 07 Feb 2005 05:06:58 +0000 |
| Subject: | #31867 [Opn->Bgs]: PHP does not read my php.ini which is in "Configuration File (php.ini) Path" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73582@lists.php.net to get a copy of this message | ||
ID: 31867
Updated by: rasmus@php.net
Reported By: php at pwhite dot mailhaven dot com
-Status: Open
+Status: Bogus
Bug Type: *Configuration Issues
Operating System: Linux 2.6
PHP Version: 5.0.3
New Comment:
Use --with-config-file-path=/home/pwhite/my_php5/lib when you build.
Previous Comments:
------------------------------------------------------------------------
[2005-02-07 05:22:38] php at pwhite dot mailhaven dot com
Description:
------------
My configuration line:
./configure --prefix=/home/pwhite/my_php5
--with-apxs2=/home/pwhite/my_httpd/bin/apxs --with-bz2 --with-pgsql
Here's what phpinfo() gives:
Configuration File (php.ini) Path: /home/pwhite/my_php5/lib
Yet my PHP installation does not recognize the file
/home/pwhite/my_php5/lib/php.ini!
However, when I copy the file to /usr/local/lib/php.ini, it works.
Reproduce code:
---------------
My /home/pwhite/my_php5/lib/php.ini:
[PHP]
magic_quotes_gpc = off
Expected result:
----------------
I expect PHP to recognize /home/pwhite/my_php5/lib/php.ini. I should
not be expected to have write access to /usr/local/lib, since I
installed PHP to a non-standard directory.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31867&edit=1