A blog with focus on technology, internet, mobile phone, IT Security, databases, open source, operating systems, Servers, news and life style

Interesting Sites

Archives

HOWTO: Install SVN Server on Linux

In order to install the SVN Server you need the SVN Server and Apache Server (to access the repository over http and

 https). Following are the steps to install the SVN Server and Apache Server.

  1. yum install subversion (this command will download and install the SVN Server)
  2. yum install mod_dav_svn (it will install the Apache Server for SVN)
  3. vim /etc/httpd/conf/httpd.conf
    1. Add the following two lines if not present in this file.

                       i.   LoadModule dav_svn_module modules/mod_dav_svn.so

                     ii.   LoadModule authz_svn_module modules/mod_authz_svn.so

  1. Create the SVN repository. In this example I will create it at /srv/svn/. Run the command svnadmin create –fs-type fsfs repo1 to create the repository
  2. Set the correct file permissions for apache. chown -R apache.apache /srv/svn/repo1
  3. Tell apache where to find the new repository. Here I create an additional Apache configuration file specifically for the SVN repositories.
    1. vim /etc/httpd/conf.d/subversion.conf
    2. Add a repository user.
      1. touch /srv/svn/repo.htpasswd
      2. htpasswd -mc /srv/svn/repo.htpasswd <username>
      3. Create the Access Control List for the SVN Repository
<Location /svn/<project>>
        DAV svn
        SVNPath /srv/svn/<project>
        AuthType Basic
        AuthName "<project> Repository"
        AuthzSVNAccessFile /srv/svn/svn-acl-conf
        AuthUserFile /srv/svn/<project>.htpasswd
        Require valid-user
</Location>

vim /srv/svn/svn-acl-conf. Add the following directives

[reop:/]
<username> =  rw
  1. Restart Apache:

service httpd restart

Tags: , , , , , , , , , , , , , , , , , , , , , ,

Related posts:

  1. Install Python from Source on Linux This article is helpful for you to install Python from...
  2. Fedora Server Installation Guide After reading this article you you should able to configure...
  3. What’s new in Linux 2.6.36? The new kernel version is notable because it hasn’t grown...
  4. Install and Configure SyncML for PocketPC This article describes the process of downloading and installing the...
  5. Linux Server Hardening Security Tips Server Hardening Security Tips Securing your Linux server is important...

Leave a Reply

*