How to install mongodb on cpanel server


Install the MongoDB repo

cd /etc/yum.repos.d
nano -w mongodb.repo

Paste below code inside

[mongodb]
name=MongoDB Repo
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1

Install MongoDB package using Yum

yum install mongo-10gen mongo-10gen-server

Configure MongoDB to automatically start after reboot

chkconfig mongod on

service mongod start

Install MongoDB PHP Extension

pecl install mongo

Restart Apache to apply changes

service httpd restart

Verify installation with this command

php -i | grep mongo -i

You can contact us at [email protected] if you require any further assistance.

by-

eLite Server Management

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

*Also Check: cheap managed dedicated servers