#41497 [Bgs->Opn]: php.ini not loaded
| From: | dbjh at gmx dot net | Date: | Fri, 25 May 2007 18:09:33 +0000 |
| Subject: | #41497 [Bgs->Opn]: php.ini not loaded | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113028@lists.php.net to get a copy of this message | ||
ID: 41497
User updated by: dbjh at gmx dot net
Reported By: dbjh at gmx dot net
-Status: Bogus
+Status: Open
Bug Type: PHP options/info functions
Operating System: RHEL 4
PHP Version: 5.2.2
New Comment:
Please read the description before closing the bug report. I've used
the same options in combination with PHP 5.2.0. No problem whatsoever.
So, your answer is completely inappropriate.
Previous Comments:
------------------------------------------------------------------------
[2007-05-25 17:34:47] sniper@php.net
You've just used wrong configuration options. Please check "./configure
--help" for more information. Note: all ini related options expect PATH
to be passed, without the php.ini. (NOT full-path!)
------------------------------------------------------------------------
[2007-05-25 13:25:45] dbjh at gmx dot net
The problem is also present on RHEL 5. The same workaround can be
used.
I meant phpinfo(), not php_info().
------------------------------------------------------------------------
[2007-05-25 11:46:51] dbjh at gmx dot net
Description:
------------
Problem:
php.ini won't be loaded from /etc. When I set PHPIniDir in
httpd.conf to /etc it still won't be loaded (judged from the output
of php_info()).
Workaround:
When I set PHPIniDir to /etc/php/ and put php.ini in that directory
it is loaded. Another workaround is putting php.ini in /etc/php.d/.
In the latter case php_info() reports "(none)" at "Loaded
Configuration File", but is mentioned at "additional .ini files
parsed". Looking at other output of php_info() it is clear that it
really is loaded.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41497&edit=1