Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

[OSX][PHP 5.5.5] Ignored --with-config-file-scan-dir

I upgraded OSX Lion to Mavericks and decided to upgrade my PHP version to the latest at the time (5.5.5)

I managed to get all dependencies, configuration, make and installation to work, however after running it, it is ignoring the scan directory and using the one originally set by Apple.

Apple original

The php-config showed

--configure-options [... --with-config-file-scan-dir=/Library/Server/Web/Config/php ...]

And the php -i showed

phpinfo()
PHP Version => 5.4.17

System => Darwin aeris-mba 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
Build Date => Aug 25 2013 01:47:44
Configure Command =>  '/private/var/tmp/apache_mod_php/apache_mod_php-87~65/php/configure'  
    ...
    '--with-config-file-path=/etc'
    '--with-config-file-scan-dir=/Library/Server/Web/Config/php'
    ...
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
Scan this dir for additional .ini files => /Library/Server/Web/Config/php
Additional .ini files parsed => (none)
PHP API => 20100412
PHP Extension => 20100525
Zend Extension => 220100525
...

You'll notice the Directory used is /Library/Server/Web/Config/php


My Update

The php-config showed

--configure-options [... --with-config-file-scan-dir=/etc/php.d ...]

And the php -i showed

phpinfo()
PHP Version => 5.5.5

System => Darwin aeris-mba 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
Build Date => Nov  2 2013 22:11:33
Configure Command =>  './configure'
    ...
    '--with-config-file-path=/etc'
    '--with-config-file-scan-dir=/etc/php.d'
    ...
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
Scan this dir for additional .ini files => /Library/Server/Web/Config/php
Additional .ini files parsed => (none)
PHP API => 20121113
PHP Extension => 20121212
Zend Extension => 220121212

You may now notice that
--with-config-file-scan-dir=/etc/php.d
but
Scan this dir for additional .ini files => /Library/Server/Web/Config/php


I have already configured, make and installed twice in case I missed anything, but to no luck.

Any ideas?

like image 952
AlphaZygma Avatar asked Nov 03 '13 06:11

AlphaZygma


1 Answers

I fixed the issue by running make clean.

like image 187
AdrienBrault Avatar answered Oct 23 '22 14:10

AdrienBrault