

MongoDB provides packages for CentOS / RHEL operating system from it’s dedicated repository.Īdd the MongoDB repository on your system.

Thanks.CentOS 8 CentOS 6 Debian 10/9 Ubuntu 18.04 Add MongoDB Repository
INSTALL MONGODB CENTOS 7 HOW TO
If you liked this post, on how to install MongoDB with RockMongo on CentOS 7, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. They are available 24×7 and will take care of your request immediately. Of course you don’t have to Install MongoDB with RockMongo on CentOS 7, if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install MongoDB and RockMongo on CentOS 7, for you. Now open your favorite web browser and navigate to where you will be welcomed by the RockMongo interface as shown in the image below:įor further information on MongoDB and RockMongo visit their documentations: MongoDB RockMongo # service httpd restartĬongratulations, you have successfully installed MongoDB along RockMongo on your CentOS 7 VPS. If you modified some Apache config files in the meantime, do not forget to restart Apache for the changes to take effect. Move the installation in your Apache default document root: # mv rockmongo-master/ /var/www/html/rockmongo
INSTALL MONGODB CENTOS 7 DOWNLOAD
OK, with that out of the way, you can now finally download RockMongo and install it. Verify that the extension is available: # php -m | grep -i mongo Then restart Apache for the changes to take effect. Now edit the file and paste the ‘extension=mongo.so’ line in the ‘Dynamic Extensions’ section. To find which is your actual php.ini file execute: # php -i |grep php.ini You should add "extension=mongo.so" to php.iniĪs the message says, you now need to edit your server php.ini file and add the Mongo extension. Install ok: channel:///mongo-1.6.13Ĭonfiguration option "php_ini" is not set to php.ini location Installing '/usr/lib64/php/modules/mongo.so' Once the installation is finished you should get the message below: Build process completed successfully PECL is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and developing PHP extensions. RockMongo needs an active php_mongo extension. MongoDB is now installed on your server, so let’s continue with the RockMongo installation. You can check the status of MongoDB with the below commands: # systemctl status mongod


Start MongoDB and enable it to start on boot: # systemctl start mongod Install MongoDB: # yum install mongo-10gen mongo-10gen-server We are using nano: # nano /etc//mongodb.repo Now create a MongoDB repo using your favorite text editor. Execute the following command: # yum install git install gcc php-pear php-devel openssl-devel unzip First you need to install some much needed packages. In this section we will be cover the steps needed for installing MongoDB and RockMongo.
INSTALL MONGODB CENTOS 7 UPDATE
Make sure your server is fully up to date: # yum update 3. Which should give you the underneath output: CentOS Linux release (Core) 2. Log in to your server via SSH: # ssh starting, enter the command below to check whether you have the proper version of CentOS installed on your machine: # cat /etc/redhat-release We will be using our SSD 1 Linux VPS hosting plan for this tutorial.
