Trac: Setting up a Tracking Solution
Introduction
Trac is a wiki with tracking capabilities in a web environment. It works with Subversion and manages tickets. It also has many other very practical features to discover.
You need to install Subversion (SVN) first. Only then can you use Trac.
Installation
Installing Trac is quite straightforward:
|
|
Creating a Trac Project
I place my various Trac instances in ~/trac. Run the following commands to create the Trac environment:
|
|
And answer the few questions asked:
- Project Name [My Project]> Project
- Database connection string [sqlite:db/trac.db]> press enter to validate
- Repository type [svn]> press enter to validate
- Path to repository [/var/svn/test]> /root/svn/project
- Templates directory [/usr/share/trac/templates]> press enter to validate
Apache2 Configuration
Now that the Trac project has been created, Apache needs to be configured to make it accessible. Edit your virtualhost file and add the following:
|
|
File Permission Modifications
To make the files accessible by Apache, you need to modify the permissions, similar to what was done for the Subversion repository:
|
|
Creating Trac Users
To connect to Trac, you need to create Trac users. Like for Subversion users, we use the htpasswd2 command:
|
|
And to add another user:
|
|
You need to edit your virtualhost file again and add the following lines:
|
|
Finalization
To finish, let’s add some security to the files containing passwords:
|
|
Resources
Last updated 30 Jan 2008, 17:15 +0200.