Here i will explain you how i’ve installed MongoPress into a debian squeeze box:
First of all we need a basic webserver, in this case i’ve installed apache but it works with nginx too.
1 |
apt-get install apache2 php5 libapache2-mod-php5 php5-gd |
it’s important to install php5-gd package, because it’s a MongoPress requisite.
Now install MongoDB.
add mongodb repo for debian.
1 2 3 |
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 echo "deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen" >> /etc/apt/sources.list apt-get update |
install via apt-get
1 |
apt-get install mongodb-10gen |
Now we need php5 driver for MongoDB.
run following commands only if you don’t have pecl installed yet.
1 |
apt-get install php5-dev php5-cli php-pear |
install php5-mongo via pecl
1 |
pecl install mongo |
now we have to enable the extension in php.ini
by adding this line in php.ini
1 |
extension=mongo.so |
We have the server ready to receive MongoPress!!
configure an apache VirtualHost, with rewrite allowed. and in the document root for this VHost run:
1 2 3 |
wget -O mpress.zip "http://www.mongopress.org/mp-includes/mp-downloads.php?id=4e71aabd6b2c06f12600003f&nonce=4dfc2d2cd4&start=" unzip mpress.zip chown www-data.www-data -R /var/www |
now open the browser and follow mongopress installation process.
I recommend you to use RockMongo wich is similar to PHPMyAdmin but for MongoDB.