How to install mongoPress on Debian 6

Posted abril 9th, 2012 in Operations, Web Development by Gastón Acosta Ramas

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.

it’s important to install php5-gd package, because it’s a MongoPress requisite.

Now install MongoDB.

add mongodb repo for debian.

install via apt-get

Now we need php5 driver for MongoDB.

run following commands only if you don’t have pecl installed yet.

install php5-mongo via pecl

now we have to enable the extension in php.ini
by adding this line in php.ini

We have the server ready to receive MongoPress!!
configure an apache VirtualHost, with rewrite allowed. and in the document root for this VHost run:

now open the browser and follow mongopress installation process.

I recommend you to use RockMongo wich is similar to PHPMyAdmin but for MongoDB.

How to install nginx 1.0 on Debian Squeeze

Posted abril 2nd, 2012 in Blog, Web Development by Gastón Acosta Ramas

hi,

here i will show you how i’ve installed NginX 1.0 on Debian Squeeze Server, drectly from Nginx repos.

 

first of all, add these lines to /etc/apt/sources.list

then add the PGP signature to apt.

now, you can install NginX 1.0 by doing apt-get install nginx.

good luck!

WebDevelopment using vagrant

Posted marzo 21st, 2012 in Blog, Web Development by Gastón Acosta Ramas

if you’re working on various web projects, and some of them are based in different technologies, and/or using different frameworks, it’s difficult to have one development environment, and keep it tidy, clean and working.

In my case, i’ve some projects under NginX others under Apache2, others in different architectures, and i’ve to test some projects in different SO.

well, here i’ll show you how i used vagrant as a solution for this problem.

vagrant uses VirtualBox headless to provide you, an easy to use/handle VM.

 

  1. download vagrant from here.
  2. add your boxes (base vms.) by default you can download ubuntu base box, but here, you have a list of Vagrant boxes you can add.
  3. usefull commands you should know.

in my case i have /home/gargrag/projects/, and inside one folder per project with a vagrant box .

editing Vagrantfile you could  forward ports to your phisical vm, add shared folders and setup many other things like chef provisioning.

for example you can forward 3306 to 3306, 80 to 8080 and whatever you need.

 

happy develop!.