php_ini not set to php.ini location

℡╲_俬逩灬. 提交于 2019-12-07 05:19:04

问题


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


来源:https://stackoverflow.com/questions/30225751/php-ini-not-set-to-php-ini-location

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!