#41497 [Opn]: php.ini not loaded

From: Date: Fri, 25 May 2007 13:25:45 +0000
Subject: #41497 [Opn]: php.ini not loaded
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113016@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: Open Bug Type: PHP options/info functions Operating System: RHEL 4 PHP Version: 5.2.2 New Comment: The problem is also present on RHEL 5. The same workaround can be used. I meant phpinfo(), not php_info(). Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#113016) next »