trac installation


create new project

  • sudo trac-admin /var/lib/trac/MyProject initenv

    • Give local svn path. Example:  "/var/lib/subversion/public/MyProject"

    • The ini file can be found at "/var/lib/trac/MyProject/conf/trac.ini"

  • sudo chown www-data:www-data /var/lib/trac -R



ullright configuration:

  • apache config:
    • <VirtualHost *:80>
              ServerAdmin webmaster@localhost
              DocumentRoot /var/www/trac
              ErrorLog /var/log/apache2/error.trac.log
              CustomLog /var/log/apache2/access.trac.log combined
              <Location />
                      SetHandler mod_python
                      PythonInterpreter main_interpreter
                      PythonHandler trac.web.modpython_frontend
                      #PythonOption TracEnvParentDir /var/lib/trac
                      PythonOption TracEnv /var/lib/trac/ullright
                      PythonOption TracUriRoot /
                      SetEnv PYTHON_EGG_CACHE /tmp
              # use the following for one authorization for all projects (names containing "-" are not detected):
              <LocationMatch "/projects/[[:alnum:]]+/login">
                  AuthType Basic
                  AuthName "trac"
                  AuthUserFile /etc/apache2/dav_svn.passwd
                  Require valid-user


trac configuration



in trac.ini:

authz_file = /etc/apache2/dav_svn.authz
authz_module_name = ullright
permission_policies = DefaultPermissionPolicy, LegacyAttachmentPolicy, AuthzSourcePolicy