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
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
Thanks bro Its a nice and really informative. :)
ReplyDeleteThanks, helped get the job done
ReplyDelete