Bo's blog

Saturday, December 17, 2005

install subversion on linux with httpd

1. download source code (apache 2.2.0, subversion 1.2.3)
2. build and install apache 2.2.0 (eg. installed to /usr/local/apache-2.2.0 )
./configure --prefix=/usr/local/apache-2.2.0 --enable-mods-shared=all
make
make install

3. change to subversion source code directory
4. use the following command to configure SVN:

./configure --with-apxs=/usr/local/apache-2.2.0/bin/apxs --with-apr=/usr/local/apache-2.2.0/bin/apr-1-config --with-apr-util=/usr/local/apache-2.2.0/bin/apu-1-config
make
make insall

6. then copy mod_dav_svn.so and mod_dav_auth_svn.so to /usr/local/apache-2.2.0/modules

7. use command to create svn repo
svnadmin create --fs-type fsfs /home/svnrepos

8. theb edit the apache config file httpd.conf
add the following:

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

<Location /svn>
DAV svn
SVNPath /home/svnrepos

# how to authenticate a user
#AuthType Basic
#AuthName "Subversion repository"
#AuthUserFile /home/svnrepos/conf/userfile

# only authenticated users may access the repository
#Require valid-user
</Location>

Labels:

0 Comments:

Post a Comment

<< Home