cintraAD: Setup a new Trac project

Posted: 20th September 2007 by Grant Perry in Linux

To create a new Trac project follow these steps:

sudo -s -H
trac-admin /var/trac/project initenv
trac-admin /var/trac/project permission add admin TRAC_ADMIN
chown -R www-data:www-data /var/trac/project

Now to setup the new Trac project with the same plugins as the example project. This also uses the same password file. So use unique usernames and users spanning multiple projects will have the same password!

nano /var/trac/project/conf/trac.ini

Add the following to the file:

[components]
trac.web.auth.loginmodule = disabled
webadmin.* = enabled
customfieldadmin.* = enabled
acct_mgr.* = enabled
acct_mgr.web_ui.RegistrationModule = disabled
 
[account-manager]
password_format = htpasswd
password_store = HtPasswdStore
password_file = /var/trac/trac.htpasswd

Then restart Apache!

apache2 -k restart

Now you should be able to point your browser to this addresses to see the new project!

  • http://servername/trac/project/