MongoDB installation in Ubuntu 14.04

We’ll be seeing how to install MongoDB and get it working with PHP.

If you had followed the step of installing mongo PECL extension you can undo it by doing the following, as this will be provided by the php5-mongo package, including the required changes in the php configuration, which we’ll be installing shortly afterwards.

  • Removing any entry in the php.ini file that you made for mongo extension.
  • Remove the PECL extension by:
sudo pecl uninstall mongo

Now do the following steps to complete the installation:

sudo apt-key adv --keyserver hkp:// --recv 7F0CEB10
echo "deb "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update

sudo apt-get install -y mongodb-org
sudo apt-get install php5-mongo

After this restart your computer, only after that the MongoClient class will be available for use.


Zend Framework 2.0.0 has arrived

Zend Framework 2.0.0 Stable has arrived, five years after the release of version 1.0 in June 2007.

Major new features:

Official Post:

How to start with PHP Programming.

To start with the PHP programming one should have the following tools-

  • Web-Server-As PHP is a server side language one would need a web-server to run the PHP code. I’m using the Apache web-server.
  • Database-One would essentially need one database for their website(in most cases). I would suggest MySQL, as it is a fully open-source.


Instead of downloading all the above tools, one-by one one can easily download one of the Integrated packages, called a Stack, that suits ones needs. I’m using the LAMP stack which can be used in Linux, with Apache as the Web-server, MySQL the database and PHP. The Windows equivalent is WAMP.

Many other stacks are also available, mostly in open-source visit the following site to select the Stack that suits your needs-

Guys, now what are u waiting for, get hold of the Stack of your choice and get going.