#31867 [NEW]: PHP does not read my php.ini which is in "Configuration File (php.ini) Path"
| From: | php at pwhite dot mailhaven dot com | Date: | Mon, 07 Feb 2005 04:22:39 +0000 |
| Subject: | #31867 [NEW]: PHP does not read my php.ini which is in "Configuration File (php.ini) Path" | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-73581@lists.php.net to get a copy of this message | ||
From: php at pwhite dot mailhaven dot com
Operating system: Linux 2.6
PHP version: 5.0.3
PHP Bug Type: *Configuration Issues
Bug description: PHP does not read my php.ini which is in "Configuration File (php.ini)
Path"
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 bug report at http://bugs.php.net/?id=31867&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31867&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31867&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31867&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31867&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31867&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31867&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31867&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31867&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31867&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31867&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31867&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31867&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31867&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31867&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31867&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31867&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31867&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31867&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31867&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31867&r=mysqlcfg