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

Posted 一根PHP

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PECL: configuration option "php_ini" is not set to php.ini location相关的知识,希望对你有一定的参考价值。

message similar to:

configuration option "php_ini" is not set to php.ini location
You should add "extension=uploadprogress.so" to php.ini


solution is something similar to:

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


Then if you really don‘t feel like touching your php.ini file:

pecl uninstall uploadprogress
pecl install uploadprogress


Oh, and you‘ll still want to restart your webserver since the php.ini changed:

sudo apache2ctl graceful







以上是关于PECL: configuration option "php_ini" is not set to php.ini location的主要内容,如果未能解决你的问题,请参考以下文章

PHP SSH2

centos7 php5.5 mongodb安装

centos6安装php7的redis扩展

php编译安装redis扩展

linux环境安装swoole

如何为PHP安装mongodb的扩展