|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-12-16 08:40 UTC] infected817 at gmail dot com
Description: ------------ I am seeing an issue where PHP 5.4.9 I compile myself or installed via apt-get will not load the php.ini file even if it exists in the "Configuration File Path" unless I pass in a -c "/path/to/php.in" to start up PHP-FPM. 1. To reproduce, compile PHP 5.4.9 with these configuration options: --prefix=/usr/local/php-5.4.9 --with-config-file-path=/etc/php5/ 2. Run make & make install. 3. Copy the stock php.ini-development to /etc/php5/php.ini 4. Create a phpinfo() file on the webserver. 5. Start PHP-FPM and browse to that phpinfo() file. 6. See the following result in the output: Configuration File (php.ini) Path /etc/php5/fpm Loaded Configuration File (none) 7. However, if we start PHP-FPM with the -c switch: ./php-fpm --fpm-config /etc/php5/php-fpm.conf -c /etc/php5/php.ini We see that php.ini is loaded: Configuration File (php.ini) Path /etc/php5/fpm Loaded Configuration File php.ini The configuration is not loaded at all unless you explicitly pass it using the -c switch to php.ini. That is even though php.ini resides in the "Configuration File Path" Expected result: ---------------- php.ini should be loaded since it is in the "Configuration File Path" Actual result: -------------- php.ini is not loaded at all, even though it exists in the "Configuration File Path" PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 23:00:01 2025 UTC |
Already exists a hint which does not uses trailing slash. " --with-config-file-path=PATH Set the path in which to look for php.ini [PREFIX/lib]"