我将 OSX Lion 升级到 Mavericks 并决定将我的 PHP 版本升级到当时的最新版本(5.5.5)
我设法让所有依赖项、配置、制作和安装工作,但是在运行它之后,它忽略了扫描目录并使用 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
我已经配置、制作和安装了两次,以防我错过任何东西,但没有运气。
有任何想法吗?