Web Projects Consulting

Local SVN + Trac + SSL How-to

Objective: svn and trac up and running on a local virtual host

Purpose: local development environment on intranet

Valid: Fedora 8, Fedora 9, Fedora 10

Adapted from this article. Before making the below, generate ssl certificate files (if you have none)

PART I. SVN

sudo yum -y install subversion trac mod_dav_svn python-httplib2.noarch sqlite
sudo mkdir -p /var/www/vhosts/svn/svn.example.com
sudo chmod 2770 /var/www/vhosts/svn/svn.example.com
sudo svnadmin create /var/www/vhosts/svn/svn.example.com
mkdir /tmp/newsvn
mkdir /tmp/newsvn/tags
mkdir /tmp/newsvn/branches
mkdir /tmp/newsvn/trunk
svn import /tmp/newsvn file:///var/www/vhosts/svn/svn.example.com -m "initial import"
rm -rf /tmp/newsvn
sudo rm -f /var/www/vhosts/svn/svn.example.com/conf/passwd
sudo htpasswd -cb /var/www/vhosts/svn/svn.example.com/conf/passwd USER PASSWORD
sudo chmod -R g+w /var/www/vhosts/svn/svn.example.com
sudo chown -R apache:apache /var/www/vhosts/svn/svn.example.com

Read this article before you go on.

sudo echo "" > /var/www/vhosts/svn/svn.example.com/conf/authz
sudo gedit /var/www/vhosts/svn/svn.example.com/conf/authz

Add the following code:

[/]
user = rw
sudo mkdir /var/log/httpd/svn.example.com
sudo gedit /etc/hosts

Add the following code:

127.0.0.2   svn.example.com
sudo touch /etc/http/conf.d/localdev.conf
sudo gedit /etc/http/conf.d/localdev.conf

For all edits, see localdev.conf in Part III

sudo /sbin/service httpd restart

In browser: //svn.example.com

SVN Installed

SVN Installed

One thought on “Local SVN + Trac + SSL How-to

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.