

# 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 on linux centos install
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 on linux centos 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.
