Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
share|improve this question
add comment

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 –  run Aug 3 '11 at 8:14
    
sudo a2enmod python-this was my problem :) –  run Aug 3 '11 at 9:13
add comment

Your Answer

 
discard

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.