#31820 [Opn->Fbk]: configuration file not read
ID: 31820
Updated by: sniper@php.net
Reported By: info at netzpilot dot ch
-Status: Open
+Status: Feedback
Bug Type: PHP options/info functions
Operating System: darwin
PHP Version: 5.0.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-02-02 19:49:17] info at netzpilot dot ch
Description:
------------
The configuration file is not read.
I compiled PHP --with-config-file-path=/etc/httpd and without it.
I have put a php.ini at /etc/httpd and /usr/local/lib and many more
places.
Always did a restart of apache.
I also gave all rights to php.ini.
Reproduce code:
---------------
echo "get_cfg_var('cfg_file_path') = " . get_cfg_var('cfg_file_path');
/* and this to check little changes in php.ini */
phpinfo();
Expected result:
----------------
the path to php.ini
Actual result:
--------------
compiled without '--with-config-file-path=/etc/httpd' my phpinfo says
Configuration File (php.ini) Path: /usr/local/lib
But changes in php.ini there have no effect.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31820&edit=1
Thread (3 messages)