Last active
December 16, 2015 07:08
-
-
Save maltzsama/5396087 to your computer and use it in GitHub Desktop.
install MongoDB + PHP5 + Lighttpd no Debian Squeeze (6.0.5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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