Thursday, June 29, 2006

Gentoo Trac with existing subversion project


sudo emerge trac sqlite pysqlite
sudo webapp-config -I -d project/trac trac 0.9.5 #this will create the symlinks for the site, http://localhost/project/trac
sudo trac-admin /var/lib/trac/project/ initenv #sets up the trac environment for the project
sudo chown apache:apache -R /var/lib/trac/project
sudo tracd -8000 /var/lib/trac/project

OR to run in apache


emerge mod_fastcgi
#add "-D FASTCGI" to /etc/conf.d/apache

#add FastCgiServer /var/www/localhost/cgi-bin/trac.fcgi -idle-timeout 120 -initial-env TRAC_ENV=/var/lib/trac/project -processes 5
# to /etc/apache/httpd.conf

#add
# SetEnv TRAC_ENV "/var/lib/trac/project"
#

# ScriptAlias /project /var/www/localhost/cgi-bin/trac.cgi
# to virtual hosts file

#add users
sudo htpasswd2 -c /etc/apach2/trac.htpasswd admin

#then add
#
# AuthType Basic
# AuthName "Trac"
# AuthUserFile /etc/apache2/trac.htpasswd
# Require valid-user
#

#
#
#to virtual hosts file

No comments: