We do support Round the Clock 24 x 7 x 365 (+91) 883 012 3924

How to install “mongodb” on cPanel server

How to install “mongodb” on cPanel server

Here are steps to install “mongodb” on cPanel server :

# Install the MongoDB repo:

cd /etc/yum.repos.d

# Create mongodb.repo file:

vi mongodb.repo

# Paste below lines into mongodb.repo file :

[mongodb] name=MongoDB Repo

# Install MongoDB using Yum

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

# 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

You can contact us at esupport@L3webhosting.com if you require any further assistance.

Comments are closed.