How to install Rockmongo on Ubuntu 16

Rockmongo: RockMongo is a MongoDB administration tool, written in PHP 5.

Step 1: Install Apache

Apache is a free open source software which runs over 50% of the world’s web servers.

To install apache, open terminal and type in these commands:
sudo apt-get update
sudo apt-get install apache2

That’s it. To check if Apache is installed, direct your browser to your server’s IP address (eg. http://12.34.56.789). The page should display the words “It works!”

How to Find your Server’s IP address

You can run the following command to reveal your server’s IP address.
ifconfig eth0 | grep inet | awk '{ print $2 }'

 

Step 2: Install MySQL

 

To install MySQL, open terminal and type in these commands:

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

During the installation, MySQL will ask you to set a root password.

Step 3: Install PHP

PHP is an open source web scripting language that is widely use to build dynamic webpages.

To install PHP, open terminal and type in this command.
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

 

Step 3: Install Rockmongo

RockMongo is a MongoDB administration GUI tool, written in PHP 5.
You can read more at here.

So, first you need to install php-mongo on Ubuntu
Install PHP Pear package;

sudo apt-get install php-pear

 

Then, install PHP-Mongo driver that connects PHP and MongoDB;

sudo apt-get install php5-dev
sudo apt-get install libpcre3 libpcre3-dev
 
sudo pecl install mongo 

 

 

Then, configure PHP-Mongo driver in Apache2

nano etc/php5/apache2/php.ini

add line below;

extension=mongo.so

 

Restart Apache2 server

sudo service apache2 restart

Then, download Rockmongo from web
http://rockmongo.com/downloads

Extract to /var/www/ folder

check the installation

http://127.0.0.1/rockmongo

Installing google chrome on Ubuntu

google-chrome-stable is availeble on 3rd Party Repository: Google Chrome (For Stable).

Follow the instruction for installation:

  1. Add Key:
    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
    
  2. Set repository:
    sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
    
  3. Install package:
    sudo apt-get update 
    sudo apt-get install google-chrome-stable