Bug #52603 [Fbk->Asn]: php-fpm default init script does not load php.ini
| From: | php at gigfa dot com | Date: | Sat, 14 Aug 2010 12:40:48 +0000 |
| Subject: | Bug #52603 [Fbk->Asn]: php-fpm default init script does not load php.ini | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153423@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52603&edit=1
ID: 52603
User updated by: php at gigfa dot com
Reported by: php at gigfa dot com
Summary: php-fpm default init script does not load php.ini
-Status: Feedback
+Status: Assigned
Type: Bug
Package: FPM related
Operating System: Linux Debian 5.04
PHP Version: 5.3.3
Assigned To: fat
Block user comment: N
New Comment:
I have compiled php with this option :
./configure \
--enable-fpm \
--with-config-file-path=/etc/php5/php.ini
When I use phpinfo(); to see if the config file has loaded or not, I see
:
Configuration File (php.ini) Path /etc/php5/php.ini
Loaded Configuration File (none)
Previous Comments:
------------------------------------------------------------------------
[2010-08-14 12:18:59] fat@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
the default php.ini file is in %{prefix}/lib/php.ini and this file is
loaded by
PHP-FPM even when it's launched by the sapi/fpm/init.d.php-fpm script.
How do you see it's not loaded ?
------------------------------------------------------------------------
[2010-08-14 07:21:57] php at gigfa dot com
Description:
------------
default php-fpm init script ( found in
./php-5.3.3/sapi/fpm/init.d.php-fpm after compilation ) does not load
default php.ini file.
I think to get the problem fixed, we need to replace :
php_opts="--fpm-config $php_fpm_CONF"
with :
php_opts="-c %conf-path% --fpm-config $php_fpm_CONF"
in this file :
./php-5.3.3/sapi/fpm/init.d.php-fpm.in
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52603&edit=1