Documentation

Trac

Configure Apache for Trac

# install --owner www-data --group www-data --mode 0770 -d /opt/trac/tools

The apache hub site configuration files are preconfigured to support this. Update the LDAP configuration to match the BASEDN of your site:

Edit /etc/apache2/sites-available/hub-ssl

        <LocationMatch /tools/[^/]+/login>
                ...
                AuthLDAPURL ldap://localhost/ou=users,dc=myhub,dc=org?uid?sub?(gid=*)
                ...
        </LocationMatch>

Then restart apache

# /etc/init.d/apache2 restart

Install Authentication Plugin

# apt-get install hubzero-trac-mysqlauthz
# /etc/init.d/apache2 restart

Test

# svnadmin create /opt/svn/tools/test --fs-type fsfs
# chown -R www-data.www-data /opt/svn/tools/test
# trac-admin /opt/trac/tools/test initenv "Test" "sqlite:db/trac.db" "svn" "/opt/svn/tools/test"
# chown -R www-data.www-data /opt/trac/tools/test

Now browse to "/tools/test/wiki" using an https connection; you should see a default Trac project page.

Delete test data.

# rm -fr /opt/svn/tools/test
# rm -fr /opt/trac/tools/test
# /etc/init.d/apache2 restart

Last modified:

  • Copyright © 2022 Hubzero
  • Powered by Hubzero®