How-to Install the MongoDB PHP 5 Module on Ubuntu 14.04 Trusty LTS Easy Guide

July 22nd, 2014 by thelinuxevangelist

Installing MongoDB PHP Driver on Ubuntu 14.04 Trusty




The Linux Tutorial Shows You Step-by-Step How-to Install and Enable the MongoDB PHP 5 Module for Ubuntu 14.04 Trusty Tahr LTS i386/amd64 Linux.

The MongoDB Driver permit You to designing a web application, such as a blog, a guestbook, or even a business-card database with PHP!

Insall MongoDB PHP Module on Ubuntu 14.04 Trusty - Featured
  1. Open a Command Line Terminal Window
    (Press “Enter” to Execute Commands)

    Ctrl+Alt+t

    Installing MongoDB PHP Module on Ubuntu 14.04 Trusty - Open Terminal
  2. How-to Install/Enable PECL Command on Linux Ubuntu:

    PHP PECL for Ubuntu
  3. Installing the PHP Module by PECL:

    sudo pecl install mongo
  4. Enabling the MongoDB PHP Module:

    sudo nano /etc/php5/apache2/php.ini

    Append in the Extensions Section:

    extension=mongo.so

    Ctrl+x to Save & Exit from the nano Editor :)

  5. Confirm that MongoDB is Working on PHP:

    How-to Install LAMP Server on Ubuntu Linux

    LAMP Server Installation Ubuntu
    sudo nano /var/www/html/info.php

    Append:

    <?php phpinfo(); ?>

    Restart the Apache Web Server and point your Browser to:

    http://localhost/info.php

    Check for:
    Insall MongoDB PHP Module on Ubuntu 14.04 Trusty - Featured

  6. Getting-Started with Mongoose on Ubuntu:

    Mongoose Quick-Start Guide

Tags: , , , , , , , , , , , , ,