Edit report at http://bugs.php.net/bug.php?id=52603&edit=1

 ID:                 52603
 Updated by:         f...@php.net
 Reported by:        php at gigfa dot com
 Summary:            php-fpm default init script does not load php.ini
-Status:             Assigned
+Status:             Bogus
 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:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

This not a bug.



./configure ... --with-config-file-path=/etc/php5/php.ini is wrong. You
had the 

previous phpinfo output:



#php -i | grep Configuration

Configuration File (php.ini) Path => /etc/php5/php.ini

Loaded Configuration File => (none)





You have to set a directory path to  --with-config-file-path. PHP will
search 

there for a php.ini file. In your case, you have to use



./configure ... --with-config-file-path=/etc/php5 is wrong and you'll
have the 

following phpinfo output



#php -i | grep Configuration

Configuration File (php.ini) Path => /etc/php5

Loaded Configuration File => /etc/php5/php.ini


Previous Comments:
------------------------------------------------------------------------
[2010-08-14 14:40:47] php at gigfa dot com

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)

------------------------------------------------------------------------
[2010-08-14 12:18:59] f...@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

Reply via email to