Install MongoDB with Nginx + PHP on Ubuntu

Assuming you already have Nginx and PHP installed and want to add MongoDB support. Install pre-requisites apt-get update apt-get install php5-cli php5-common php5-suhosin php5-cgi php5-curl php5-fpm php5-json php5-mcrypt php5-mysql php5-sqlite php5-dev php-pear php-apc Enable Mongo pecl install mongo echo “” >> /etc/php5/fpm/php.ini Install MongoDB apt-get install mongodb mongodb-server Restart Services service nginx restart service php5-fpm […]