!!Apache & mod_wsgi

!!Linux

First install apache2

Then install python2.5

!Install mod_wsgi2

you will need apxs2.  You need to install apache2-threaded-dev (from aptitude) to get it.

from the extracted mod_wsgi folder,

{{{
$ ./configure --with-apxs=/usr/bin/apxs2
$ make
$ sudo make install
}}}

!Add mod_wsgi to apache

Apache modules live in /usr/lib/apache2/modules

{{{
$ cd /etc/apache2/mods-available
}}}

in mods-available, create a file called wsgi.load and populate it with

{{{
LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
}}}

----
[Linux | CategoryArchive.Computing.Linux] - 
[Python | CategoryArchive.Computing.Lang.Python]