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.
- yum install subversion (this command will download and install the SVN Server)
- yum install mod_dav_svn (it will install the Apache Server for SVN)
- vim /etc/httpd/conf/httpd.conf
- 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
- 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
- Set the correct file permissions for apache. chown -R apache.apache /srv/svn/repo1
- Tell apache where to find the new repository. Here I create an additional Apache configuration file specifically for the SVN repositories.
- vim /etc/httpd/conf.d/subversion.conf
- Add a repository user.
- touch /srv/svn/repo.htpasswd
- htpasswd -mc /srv/svn/repo.htpasswd <username>
- 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
- Restart Apache:
service httpd restart
Tags: access control list, apache configuration, apache server, apache; server; web server; svn; versioning; source control;, chown, configuration file, dav, developers, Development, file permissions, htpasswd, Linux, lt, opensource, Redhat, repo, repositories, repository, ssysadmin, subversion, SuSE, SysAdmin, Technology
Related posts:
- Install Python from Source on Linux This article is helpful for you to install Python from...
- Fedora Server Installation Guide After reading this article you you should able to configure...
- What’s new in Linux 2.6.36? The new kernel version is notable because it hasn’t grown...
- Install and Configure SyncML for PocketPC This article describes the process of downloading and installing the...
- Linux Server Hardening Security Tips Server Hardening Security Tips Securing your Linux server is important...












