Apache Subversion – version control system on centos 6.4 / RHEL

Posted: May 21, 2013 in FX Pipeline, Linux



Subversion is an open source version control system.

Subversion exists to be universally recognized and adopted as an open-source, centralized version control system characterized by its reliability as a safe haven for valuable data; the simplicity of its model and usage; and its ability to support the needs of a wide variety of users and projects, from individuals to large-scale enterprise operations.

SVM version

Download the Source Code



Download The Free Book :- http://svnbook.red-bean.com/en/1.7/svn-book.pdf

Installation and Configuration Process on Centos 6.4

yum install -y subversion mod_dav_svn

Configure Subversion
gedit /etc/httpd/conf.d/subversion.conf

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /svn>
DAV svn
SVNParentPath /var/www/svn
AuthType Basic
AuthName “Subversion repositories”
AuthUserFile /etc/svn-auth-users
Require valid-user
# Example configuration to enable HTTP access for a directory
# containing Subversion repositories, “/var/www/svn”. Each repository
# must be both:
create New User for Subversion

htpasswd -cm /etc/svn-auth-users rajiv
New password:
Re-type new password:
Adding password for user rajiv

Create and configure Subversion Repository (MX Studio application)
mkdir /var/www/svn
cd /var/www/svn/
svnadmin create mxstudio_repo
chown -R apache.apache mxstudio_repo/

chcon -R -t httpd_sys_content_t /var/www/svn/mxstudio_repo/
chcon -R -t httpd_sys_rw_content_t /var/www/svn/mxstudio_repo/
gedit /etc/sysconfig/iptables

-A INPUT -p udp -m state –state NEW –dport 80 -j ACCEPT
-A INPUT -p tcp -m state –state NEW –dport 80 -j ACCEPT

/etc/init.d/iptables restart

/etc/init.d/httpd restart

Test Subversion
enter the following URL http://ip-address/svn/mxstudio_repo

In My Case its :

Create additional links(directories) under Subversion Repository

[root@mx rajiv]# mkdir mx-studio
[root@mx rajiv]# cd mx-studio
[root@mx mx-studio]# mkdir python
[root@mx mx-studio]# mkdir bin
[root@mx mx-studio]# mkdir updates
[root@mx mx-studio]# mkdir doc
[root@mx mx-studio]# mkdir json
[root@mx mx-studio]# svn import -m ‘Initial import’ mx-studio/
Authentication realm: <; Subversion repositories
Password for ‘root’:
Authentication realm: <; Subversion repositories
Username: rajiv
Password for ‘rajiv’:
Adding mx-studio/python
Adding mx-studio/updates
Adding mx-studio/doc
Adding mx-studio/bin
Adding mx-studio/json

ATTENTION! Your password for authentication realm:

<; Subversion repositories

can only be stored to disk unencrypted! You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible. See the documentation for details.

You can avoid future appearances of this warning by setting the value
of the ‘store-plaintext-passwords’ option to either ‘yes’ or ‘no’ in
Store password unencrypted (yes/no)? yes

Committed revision 1.
[root@mx rajiv]#


  1. Trung Lee says:

    how to install subversion without apache on centos 6.4?
    can you help me?

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s