To install the php driver for MongoDB
Prerequisite ::
#sudo apt-get install autoconf
#export PHP_AUTOCONF=/usr/bin/autoconf
#sudo apt-get install gcc
#sudo apt-get install make
Installing mondodb phpdriver
#sudo /opt/lampp/bin/pecl install mongo
It will download and installing mongo php driver and given message as below
Build process completed successfully
Installing '/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/mongo.so'
install ok: channel://pecl.php.net/mongo-1.5.8
configuration option "php_ini" is not set to php.ini location
You should add "extension=mongo.so" to php.ini
Now, Just add below mentioned line into php.ini file.
extension=mongo.so
and restart the lampp
#sudo /opt/lampp/lampp restart
Prerequisite ::
#sudo apt-get install autoconf
#export PHP_AUTOCONF=/usr/bin/autoconf
#sudo apt-get install gcc
#sudo apt-get install make
Installing mondodb phpdriver
#sudo /opt/lampp/bin/pecl install mongo
It will download and installing mongo php driver and given message as below
Build process completed successfully
Installing '/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/mongo.so'
install ok: channel://pecl.php.net/mongo-1.5.8
configuration option "php_ini" is not set to php.ini location
You should add "extension=mongo.so" to php.ini
Now, Just add below mentioned line into php.ini file.
extension=mongo.so
and restart the lampp
#sudo /opt/lampp/lampp restart