trac installation

http://trac.edgewall.org/

http://trac.edgewall.org/wiki/0.11/TracOnUbuntu

http://trac-hacks.org/

 

trac.ull.at

http://trac.ull.at

 

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
              ServerName trac.ullright.org
              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
              </Location>
      
              # 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
              </LocationMatch>
      
      </VirtualHost>

 

trac configuration

/var/lib/trac/my_project/conf/trac.ini

Auth

in trac.ini:

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