Bug #73565 [Opn]: --with-config-file- can`not effect
| From: | 961365124 at qq dot com | Date: | Mon, 21 Nov 2016 04:56:37 +0000 |
| Subject: | Bug #73565 [Opn]: --with-config-file- can`not effect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-205498@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73565&edit=1
ID: 73565
User updated by: 961365124 at qq dot com
Reported by: 961365124 at qq dot com
Summary: --with-config-file- can`not effect
Status: Open
Type: Bug
Package: *Configuration Issues
Operating System: ubuntu 16.04
PHP Version: 7.1Git-2016-11-19 (Git)
Block user comment: N
Private report: N
New Comment:
and the file
/usr/local/php7/etc/php.ini exist
Previous Comments:
------------------------------------------------------------------------
[2016-11-21 04:13:03] 961365124 at qq dot com
I know how to show you this case.
command script
----------------
$ ./configure --disable-all
$ make
$ ./configure --prefix=/usr/local/php7 --with-config-file-path=/usr/local/php7/etc
$ make
$ ./sapi/fpm/php-fpm -i | grep Configuration
output
----------------
Configuration File (php.ini) Path => /usr/local/php7/etc
Loaded Configuration File => (none)
The second ./configure --with-config-file-path= seems not effect.
------------------------------------------------------------------------
[2016-11-19 11:42:25] kalle@php.net
Hi, is this issue also affected on lower versions than 7.2 (master)? E.g. PHP 7.1.0RC6?
------------------------------------------------------------------------
[2016-11-19 02:35:02] 961365124 at qq dot com
Description:
------------
I clone php-src from github.version is 7.2.0-dev.I use ./configure --prefix=/usr/local/php7
--with-config-file-path=/usr/local/php7/etc
./php-fpm -i | grep ini found Loaded Configuration File => (none).
and strace /usr/local/php7/sbin/php-fpm -i 2>1.logfound
open("/usr/local/lib/php.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
I dont know why --with-config-file- cannot effect
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73565&edit=1