Wednesday, December 9, 2009

mod_python and apache2

My OS is Ubuntu 9.10

1. install mod_python
#aptitude install libapache2-mod-python
2. open default file to configure settings
#gedit /etc/apache2/sites-available/default
3. put this data
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all

AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
4. restart apache2
#/etc/init.d/apache2 restart

No comments: