Blue Screen Of Duds

Where the alter ego of codelust plays

Getting Subversion & Apache running

leave a comment »

The trick is to go for the simplest configuration possible, my installation was done on a RedHat 2.6.9-5.EL kernel.

My set up involved getting up an Apache instance (version 2.2.0) running on port 8081 serving only Subversion (version 1.2.3) repositories.

Get Lighthttpd running on port 80 proxying requests to /svn to port 8081 on localhost. The same can be done with a public facing server with proper security measures added in.

First install Apache:

./configure --enable-mods-shared=most --prefix=/usr/local/svnhttpd

make && make install

Install Subversion

./configure --with-apxs=/usr/local/svnhttpd/bin/apxs --prefix=/usr/local/subversion --with-apr=/usr/local/svnhttpd/bin/apr-1-config --with-apr-util=/usr/local/svnhttpd/bin/apu-1-config

install && make install

(note: if you don’t use the with apr and with apr util flags to the Apache ones, the server will throw up an error, which I figured out due to this post.)

Edit httpd.conf to make it run on the port you want to run it and add the dav handler for the SVN location.

Listen 8081
DocumentRoot "/data/svn/repository"

     Dav svn
     SVNParentPath /data/svn/repository
     Order allow,deny
     Allow from all
     
        Order deny,allow
        Deny from all
        Satisfy all
     

Start up Apache and you are ready to go!

Next up is Trac, which I will try to install tomorrow.

Written by shyam

April 13, 2006 at 12:22 pm

Posted in Technology

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: