0

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>

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

in this file,

/etc/apache2/sites-enabled/000-default

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

1 Answer 1

1

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

sudo apt-get install libapache2-mod-python
2
  • Already installed
    – Mokus
    Aug 3, 2011 at 8:14
  • sudo a2enmod python-this was my problem :)
    – Mokus
    Aug 3, 2011 at 9:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .