Installing MongoDB on Ubuntu with PHP Support

How to install MongoDB on Ubuntu 12.04 with PHP support

apt-get install mongodb php5 php5-dev libapache2-mod-php5 php5-curl php5-gd apache2-threaded-dev build-essential php-pear apache2
pecl install mongo
echo "extension=mongo.so" >> /etc/php5/apache2/php.ini
echo "extension=mongo.so" >> /etc/php5/cli/php.ini
service apache2 restart

done

Leave a comment

Your email address will not be published. Required fields are marked *