Submit Your Site For Free!

Email Address:
* URL:
*
*Indicates Mandatory Field

Terms & Conditions

SysAdminNews
SecurityProNews
ITmanagement










Installing An Enhanced Wiki And Issue Tracking System

By Daniele Salatti
Expert Author
Article Date: 2009-03-19

Trac is an enhanced wiki and issue tracking system for software development projects that works very well with Subversion. If you need to set it up, this short guide will show you how to do that with little effort.

Start by installing Trac:
1.sudoapt-get installtrac python-setuptools libapache2-mod-python enscript

Then create a Trac database:
1.sudomkdir/var/www/trac
2.sudotrac-admin /var/www/trac/repo initenv

Answer to its questions (in most cases you can take the defaults - if you followed this guide your Subversion repository should be in /var/svn/repo).

When you are done, set the right permissions on the trac folder. You can do this issuing a command like this one (change your user and group name accordingly):
1.cd/var/www
2.sudochown-R www-data.svn trac

Open your Apache virtual host file  adding this:
01.<Location/trac/[[:alnum]]+/login">
02.AuthType Basic
03.AuthName "Subversion Repository"
04.AuthUserFile /etc/apache2/passwords
05.Require valid-user
06.</Location>
07. 
08.<Location/trac>
09.SetHandler mod_python
10.PythonInterpreter main_interpreter
11.PythonHandler trac.web.modpython_frontend
12.PythonOption TracEnvParentDir /var/www/trac
13.PythonOption TracUriRoot /trac
14.</Location>

Then restart Apache.

Comments

About the Author:
Daniele Salatti is a 23 years old Italian guy. Informatic Engineering student at the University of Pisa, he is a passionate Linux user. Check out his blog at Salatti.net.



Newsletter Archive | Article Archive | Submit Article | Advertising Information | About Us | Contact