php_ini not set to php.ini location

2019-06-22 06:19发布

I'm trying to install MongoDB PHP Driver for XAMPP on OSX, and my terminal says the following:

configuration option "php_ini" is not set to php.ini location

What does this mean and how can I fix it (if it's even problem at all)?

2条回答
Melony?
2楼-- · 2019-06-22 06:39

If you are using XAMPP included pecl version, you should use following command on your cli:

/Applications/XAMPP/bin/pecl config-set php_ini /Applications/XAMPP/etc/php.ini
查看更多
何必那么认真
3楼-- · 2019-06-22 06:43

pecl config-set php_ini /etc/php5/apache2/php.ini

查看更多
登录 后发表回答