Difference between revisions of "Trac"
Line 2: | Line 2: | ||
===Trac Configuration files=== | ===Trac Configuration files=== | ||
− | */etc/httpd/conf.d/trac.conf | + | *'''/etc/httpd/conf.d/trac.conf''' |
− | ** Apache Configuration | + | ** Apache Configuration |
** Handles mod_python, authentication options and splash page | ** Handles mod_python, authentication options and splash page | ||
− | */etc/httpd/htpasswd/trac.htpasswd | + | *'''/etc/httpd/htpasswd/trac.htpasswd''' |
** Users File | ** Users File | ||
− | */etc/trac/trac.ini | + | *'''/etc/trac/trac.ini''' |
**Main configuration file. Options set here are applied to all instances | **Main configuration file. Options set here are applied to all instances | ||
− | ** Plugins need to be controlled on an instance by instance basis | + | **Plugins need to be controlled on an instance by instance basis |
− | */var/www/html/trac/{INSTANCE_NAME/conf/trac.ini | + | *'''/var/www/html/trac/{INSTANCE_NAME/conf/trac.ini''' |
− | **Instance configuration file. Overrides option | + | **Instance configuration file. Overrides option set in /etc/trac/trac.ini |
Latest revision as of 15:44, 19 December 2012
Trac is an open sourvce general purpose issue tracker. While Trac is well documented on its own Trac instance, a quick reference of the various configuration elements and commands are provided:
Trac Configuration files
- /etc/httpd/conf.d/trac.conf
- Apache Configuration
- Handles mod_python, authentication options and splash page
- /etc/httpd/htpasswd/trac.htpasswd
- Users File
- /etc/trac/trac.ini
- Main configuration file. Options set here are applied to all instances
- Plugins need to be controlled on an instance by instance basis
- /var/www/html/trac/{INSTANCE_NAME/conf/trac.ini
- Instance configuration file. Overrides option set in /etc/trac/trac.ini
Setting Up a new instance
- connect to mysql server
- CREATE DATABASE instancename DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
- grant all on instancename.* to 'tracuser'@'localhost' identified by 'password';
- On rome: run trac-admin instancename initenv
- connection string should be mysql://tracuser:password@localhost/instancename
- Profit
Handy Commands
- Granting a user admin permissions
- trac-admin /path/to/projenv permission add bob TRAC_ADMIN