Tuesday, October 06, 2009

#nginx and #wsgi on #ubuntu howto

I wanted to install mod_wsgi for nginx on ubuntu here are some basic steps for compiling it


wget http://sysoev.ru/nginx/nginx-0.7.62.tar.gz
tar -zxvf nginx-0.7.62.tar.gz
hg clone http://hg.mperillo.ath.cx/nginx/mod_wsgi/


wget http://lophus.org/~fred/mod_wsgi_patch.diff
see why you need that patch
cd mod_wsgi/
patch -p1 < ../mod_wsgi_patch.diff
cd ..


cd nginx-0.7.62/
./configure --add-module=../mod_wsgi/ --with-debug
make
sudo make install

No comments: