php_ini not set to php.ini location

2019-06-22 06:53发布

问题:

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)?

回答1:

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



回答2:

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