mod_python en Apache

Instalamos el módulo de apache:
$ apt-get install --no-install-recommends libapache2-mod-python
Añadimos AddHandler mod_python .py, PythonHandler mod_python.publisher, y PythonDebug en:
$ vi /etc/apache2/sites-available/default

    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
    AddHandler mod_python .py
    PythonHandler mod_python.publisher
    PythonDebug On

Reiniciamos Apache:
$ /etc/init.d/apache2 restart
Probamos:
$ vi /var/www/prueba.py