<VirtualHost *>
ServerAdmin webmaster@foobar.com
ServerName projects.foobar.com
DocumentRoot /var/tracs
ScriptAlias /tracs /usr/share/trac/cgi-bin/trac.cgi
<Location /tracs>
SetEnv TRAC_ENV_PARENT_DIR "/var/tracs"
</Location>
<LocationMatch "/tracs/[^/]">
AuthType Basic
AuthName "trac"
AuthUserFile /var/tracs/projects.htpasswd
Require valid-user
</LocationMatch>
ErrorLog /var/log/apache2/error.trac.log
CustomLog /var/log/apache2/access.trac.log combined
AddHandler cgi-script .cgi
</VirtualHost>
a2ensite tracs
htpasswd -c /var/tracs/projects.htpasswd myusername mypassword
mkdir /var/repo
cd /var/repo
svnadmin create foobar
chown -R www-data:www-data /var/repo
apache2ctl restart
Monday, May 19, 2008
Trac on Ubuntu 8.04 LTS
I just got a VPS and decided to go with Ubuntu 8.04 LTS. Here's how I installed trac on the box. The commands below were executed after logging in as root
apt-get install trac apache2 libapache2-svn subversion
mkdir /var/tracs
cd /vat/tracs
trac-admin foobar initenv
chown -R www-data:www-data /var/tracs
nano /etc/apache2/sites-available/foobar
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment