mod_python

Mod_python is an Apache module that embeds the Python interpreter within the server. With mod_python you can write web-based applications in Python that will run many times faster than traditional CGI

Installation
Download the latest version of mod_python (3.3.1 at time of writing). Apache 2.2.11 had issues with mod_python. Downloading the latest from Apache's svn repo worked better...

Configure, build and install the module:

./configure --with-apxs=/usr/local/apache2/bin/apxs
make
make install

Edit /usr/local/apache2/conf/httpd.conf and add:
LoadModule python_module /usr/local/apache2/modules/mod_python.so

Restart Apache:
svc -t /service/apache

And about 10 seconds later, confirm that it is running:
svstat /service/apache

Testing mod_python
Edit /usr/local/apache2/conf/httpd.conf and add:
<Directory /usr/local/apache2/htdocs/python_test>
AddHandler mod_python .py
PythonHandler mptest
PythonDebug On
</Directory>

Create the test directory:
mkdir /usr/local/apache2/htdocs/python_test

Then create a test file /usr/local/apache2/htdocs/python_test/mptest.py with these contents (watch the indenting - it's important!):
from mod_python import apache

def handler(req):
    req.content_type = 'text/plain'
    req.write("Hello World!")
    return apache.OK

Restart Apache:
svc -t /service/apache

Then load http://<yourserver>/python_test/mptest.py in your web browser. If it works, delete the testing stuff you just added. If it doesn't work, good luck!"