18

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

  • http://stackoverflow.com/questions/23404462/mongodb-connection-in-php-not-working – Maximus2012 May 13 '15 at 21:50
  • That's use less, it's for Ubuntu –  May 13 '15 at 21:58
  • 1
    The line `configuration option "php_ini" is not set to php.ini location` is always followed by another one telling you what is wrong, please, provide it. Most likely to be the solution indicated by @Maximus2012 – Álvaro Arranz May 13 '15 at 22:02

2 Answers2

33

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

FDisk
  • 8,493
  • 2
  • 47
  • 52
3

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
tuffz
  • 86
  • 3