mongodb - Multiple versions of PHP and Mongo -
i have version php , need install mongo 5.6 version. have mongo 5.5 version , intsall
ivan@ivan-pc:/usr/lib/php$ sudo pecl install mongodb pecl/mongodb installed , same released version 1.1.9 install failed sudo pecl install mongo pecl/mongo installed , same released version 1.6.14
install failed
and when check php -m dont see mongo , in phpinfo not find mongo. try
phpenmod -v php5.6 mongodb
but inthis way
/etc/php/5.6/mods-available/
have
mongo.ini
whe run php -m not have mongo module
sudo pecl info mongo pecl.php.net/mongo-1.6.14
but still not mongo version php. how right enable mongo php version ?
switch required php version with
sudo update-alternatives --config=php sudo update-alternatives --config=php-config sudo update-alternatives --config=phpize
just run install force flag
sudo pecl install -f mongodb
Comments
Post a Comment