How to install mongodb on cpanel server

MySQL 7.8.2016 No Comments

 

Install the MongoDB repo:
cd /etc/yum.repos.d
Create mongodb.repo file:
nano -w mongodb.repo
Paste this code inside:
[mongodb]
name=MongoDB Repo
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1

Install MongoDB using Yum
yum install mongo-10gen mongo-10gen-server
At this point, you should have MongoDB installed on your CentOS + cPanel box.
Configure MongoDB to automatically start after reboot:
chkconfig mongod on
Start MongoDB:
service mongod start
Use the powerful PECL command to install your MongoDB PHP extension:
pecl install mongo
Restart Apache to apply changes:
service httpd restart
Verify installation with this command:
php -i | grep mongo -i
If you see the MongoDB extension in the output, then you are all set!

by-

eLite Server Management

We Specialize In cPanel Server Management
Affordable 24/7 Technical Support Company

Leave a Reply