The Passionate Craftsman

Ruby, PHP, MySql, Software engineering and more.

Wednesday, 18 July 2012

Install zemomq and Mngrel2 on Debian Squeeze

# as root
apt-get install uuid-dev
apt-get install build-essential
tar -xzvf zeromq-2.2.0.tar.gz
cd zeromq-2.2.0/
sudo make install

apt-get install sqlite3 libsqlite3-dev

apt-get install sudo
tar -xjvf mongrel2-1.7.5.tar.bz2
cd mongrel2-1.7.5/
make clean all && sudo make install

adduser mongrel
cd ..
mv mongrel2-1.7.5/ /home/mongrel/
cd /home/mongrel
chown -R mongrel mongrel2-1.7.5/
cd mongrel2-1.7.5/

# log out and login as mongrel user
cd mongrel2-1.7.5/
cp examples/configs/sample.conf mysite.conf
m2sh load -config mysite.conf
ls config.sqlite
mkdir run logs tmp
m2sh start -host localhost

# access this url to test it http://your_hostname:6767/tests/sample.html

curl http://your_hostname:6767/tests/sample.html
hi there