13.1 The mod_python module

If one did not set anything up for PHP, in the previous section, you will need to configure Apache first. Simply follow the instructions from the previous section in this document, Pre-configuring Apache. If, however, you have already done this for PHP, you need not re-configure Apache.

We are now ready to configure mod_python. I did so as follows:

# ./configure --with-apache=../apache_1.3.x

It should be noted that if you had to install another version of Python, to avoid confusion for mod_python, you will have to specify where the source is for the Python you wish to use. You may do this as follows:

# ./configure --with-apache=../apache_1.3.x \
              --with-python=/path/to/Python

You can also specify where, if any, databases are installed on your system.

After the configure is finished, proceed to make mod_python by issuing make command. After the compilation, install mod_python with make install. The mod_python files will be installed in the src/modules/python subdirectory within your Apache source directory.