Back To The Main Support Page
Installing and Configuring Edgewall trac on your Slingshot server
What is Trac?
"Trac is an enhanced wiki and issue tracking system for software development projects. Trac uses a minimalistic approach to web-based software project management. Our mission is to help developers write great software while staying out of the way. Trac should impose as little as possible on a team's established development process and policies." -- Edgewall Software - The Trac Project
How to Install
Enable the Dag and Dries repos for just these packages.
Create a file in /etc/yum.repos.d/Dag-KBS-Extras.repo
[dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=0 includepkgs=clearsilver python-clearsilver trac [kbs-CentOS-Extras] name=CentOS.Karan.Org-EL$releasever - Stable gpgcheck=1 gpgkey=http://centos.karan.org/RPM-GPG-KEY-karan.org.txt enabled=0 baseurl=http://centos.karan.org/el$releasever/extras/stable/$basearch/RPMS/ includepkgs=python-docutils python-imaging
rpm --import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
yum --enablerepo=dag --enablerepo=kbs-CentOS-Extras install trac python-docutils python-imaging
mkdir -p /var/svn/repos svnadmin create /var/svn/repos/test
chown -R apache:apache /var/svn/repos/test
trac-admin /var/lib/trac/test initenv
Project Name [My Project]> Testing 123 Database connection string [sqlite:db/trac.db]> Repository type [svn]> Path to repository [/path/to/repos]> /var/svn/repos/test Templates directory [/usr/share/trac/templates]>
mkdir -p /etc/tracd htpasswd -c /etc/tracd/tracusers test@test.com
htpasswd /etc/tracd/tracusers bob@bob.com
curl -Os http://svn.highgroove.com:8080/deployment/trunk/tracd cp tracd /etc/init.d/tracd chmod +x /etc/init.d/tracd
OPTIONS="-s -r -d -p 9000 --basic-auth=*,/etc/tracd/tracusers,trac /var/lib/trac/test"
/etc/init.d/tracd start
chkconfig tracd on
<VirtualHost *:80> ServerName trac.yourapp.com ServerAlias www.trac.yourapp.com ProxyPass / http://localhost:9000/ ProxyPassReverse / http://localhost:9000 ProxyPreserveHost on </VirtualHost>
/etc/init.d/apache2 reload