Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I'm trying to setup a trac, I entered the following lines

<Location /trac/[[:alnum]]+/login">
  AuthType Basic
  AuthName "Subversion Repository"
  AuthUserFile /etc/apache2/dav_svn.passwd
  Require valid-user

<Location /trac>
  SetHandler mod_python
  PythonInterpreter main_interpreter
  PythonHandler trac.web.modpython_frontend
  PythonOption TracEnvParentDir /var/www/trac
  PythonOption TracUriRoot /trac

in this file,


but when I'm trying to restart the apache server, I'm getting the following error:

Syntax error on line 50 of /etc/apache2/sites-enabled/000-default:
Invalid command 'PythonInterpreter', perhaps misspelled or defined by a module not included in the server configuration
share|improve this question

1 Answer 1

up vote 1 down vote accepted

Perhaps you need to install libapache2-mod-python first?

sudo apt-get install libapache2-mod-python
share|improve this answer
Already installed – OHLÁLÁ Aug 3 '11 at 8:14
sudo a2enmod python-this was my problem :) – OHLÁLÁ Aug 3 '11 at 9:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.