Skip to content

Instantly share code, notes, and snippets.

@maltzsama
Last active December 16, 2015 07:08
Show Gist options
  • Select an option

  • Save maltzsama/5396087 to your computer and use it in GitHub Desktop.

Select an option

Save maltzsama/5396087 to your computer and use it in GitHub Desktop.
install MongoDB + PHP5 + Lighttpd no Debian Squeeze (6.0.5)
#A instalação é bastante simples como poderá ver nos passos abaixo:
sudo su
apt-get install mongodb mongo-clients php5-dev
apt-get install git
git clone https://github.com/mongodb/mongo-php-driver.git
cd mongo-php-driver
phpize
./configure
make install
php -i | grep extension_dir
cp modules/mongo.so /path/to/php/extension_dir/
#Criar o arquivo mongo.ini
vim /etc/php5/conf.d/mongo.ini
echo 'extension=mongo.so' > /etc/php5/conf.d/mongo.ini
/etc/init.d/lighttpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment