Thursday, September 20, 2012

mod_wsgi Installation

The aim of mod_wsgi is to implement a simple to use Apache module which can host any Python application which supports the Python WSGI interface. The module would be suitable for use in hosting high performance production web sites, as well as your average self managed personal sites running on web hosting services.

cd /usr/local/src/

wget http://modwsgi.googlecode.com/files/mod_wsgi-3.4.tar.gz
tar -zxvf mod_wsgi-3.4.tar.gz
cd mod_wsgi-3.4

 locate apxs
./configure --with-apxs=/usr/local/apache/bin/apxs  --with-python=/usr/local/bin/python
make
make install

Edit httpd.conf file
LoadModule wsgi_module modules/mod_wsgi.so

For apache 1.3 version
AddModule mod_wsgi.c

/etc/init.d/httpd/ restart

No comments: