13 The mod_python module

Python is yet another wonderful scripting language. It is object oriented, and is also very fast at text processing.

Firstly, one should make sure that the system has Python 2.x installed. Typing python, or python -V, at your command prompt should confirm this. If not, one will need to download and install Python. Python can downloaded from http://www.python.org. It is recommended to download a release from the Python 2.x series.

For example, this is what is seen when I type python at the prompt:

Python 2.3.3 (#2, Feb 24 2004, 09:29:20)
[GCC 3.3.3 (Debian)] on linux2

Even though one may have Python installed, one should install it without thread support, for the sake of mod_python. If your version of Python was compiled with threads, it is best to install another copy of Python on the system without support for threads.

As for mod_python itself, one can download a copy from http://www.modpython.org. Shown in this document is how to install the mod_python 2.7.x series. After obtaining the package, untar the file:

# cd /opt/apache
# tar zxvf /path/to/mod_python-2.7.x
# cd mod_python-2.7.x


Subsections