我将OSX Lion升级为Mavericks并决定将我的PHP版本升级到当时的最新版本(5.5.5)
我设法让所有依赖项,配置,make和安装工作,但是在运行它之后,它忽略了扫描目录并使用Apple最初设置的目录。
php-config
显示
--configure-options [... --with-config-file-scan-dir=/Library/Server/Web/Config/php ...]
php -i
显示
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
...
您会注意到使用的目录是 /Library/Server/Web/Config/php
php-config
显示
--configure-options [... --with-config-file-scan-dir=/etc/php.d ...]
php -i
显示
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
您现在可能会注意到
--with-config-file-scan-dir=/etc/php.d
但
Scan this dir for additional .ini files => /Library/Server/Web/Config/php
<小时/> 我已经配置,制作和安装了两次,以防我错过任何东西,但没有运气。
有什么想法吗?
答案 0 :(得分:8)
我通过运行make clean
来修复此问题。