Discussion:
[PHP-INSTALL] option --with-config-file-path
l***@slex.org
2011-12-08 14:51:46 UTC
Permalink
Hello,

Sorry if that question have been asked before. I searched in the list
archives and didn't find anything useful.

I am trying to understand why the configure option --with-config-file-path
does not work when I am compiling from source.

the command line for configure I am using is:
./configure --prefix=/opt/php --enable-bcmath
--with-apxs2=/opt/http/bin/apxs --with-config-file-path=/opt/php/etc

make && make install are ok.

then
/opt/php/bin/php --ini
outputs
Configuration File (php.ini) Path: /opt/php/lib
Loaded Configuration File: /opt/php/lib/php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)

which means that php is going to search for the ini file in /opt/php/lib
directory instead of /opt/php/etc

The same behavor is observed for the with-config-scan-dir option.

I've tried with both php-5.3.8 and php-5.2.17

Does anybody have a clue?

Thanks.

Loading...