Friday 17 October 2014

Install MongoDB in Ubuntu 14.04


Install MongoDB



How to install MongoDB in XAMPP in Linux?

Hi,

Use the below steps to install MongoDB in XAMPP in Linux OS.


Install MongoDB in XAMPP in Linux.

Steps :

1. Download and install XAMPP devel package first. If you installed XAMPP in /opt folder then use the below command or You can replace /opt/ to the path where you installed XAMPP.

# tar xvfz xampp-linux-devel-1.x.x.tar.gz -C /opt/

2. Then install autoconf, automake and gcc if it is not installed in your system.

# yum install autoconf automake gcc -y

3. Then use the below command to install mongodb extension in xampp

# /opt/lampp/bin/pecl install mongo

4. Then edit php.ini file in xampp and add the mongo.so extension

# vi /opt/lampp/etc/php.ini

extension="mongo.so"

:wq

5. Now restart the xampp using the below command.

# /opt/lampp/lampp restart

6. Now use the below command to install mongo and run the mongo service.

# yum --disablerepo=* --enablerepo=fedora,updates install mongodb mongodb-server
# service mongod start
# chkconfig mongod on





Install  Gearman  and solar  install in xampp ubuntu

sudo  /opt/lampp/bin/pecl install -f gearman

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


sudo /opt/lampp/bin/pecl install -f solr

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






No comments:

Post a Comment