{"id":3212,"date":"2012-05-25T23:54:08","date_gmt":"2012-05-25T15:54:08","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=3212"},"modified":"2023-04-28T09:49:16","modified_gmt":"2023-04-28T09:49:16","slug":"how-to-install-and-configure-subversion-1-6-on-centos-6-2","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-and-configure-subversion-1-6-on-centos-6-2\/","title":{"rendered":"How to Install and Configure Subversion 1.6 on CentOS 6.2"},"content":{"rendered":"<p>Subversion is a open source version control system that will manages files and will keep the changes made to the files. In this post i will share the quick steps to install and configure subversion on linux CentOS 6.2 server.<\/p>\n<p>1. Install subversion using yum install :<\/p>\n<pre>\n[root@svn ~]# yum install mod_dav_svn subversion -y\nLoaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirrors.hostemo.com\n * extras: mirrors.hostemo.com\n * rpmforge: mirror.oscc.org.my\n * updates: mirrors.hostemo.com\nSetting up Install Process\nResolving Dependencies\n--> Running transaction check\n---> Package mod_dav_svn.i686 0:1.6.11-2.el6_1.4 will be installed\n---> Package subversion.i686 0:1.6.11-2.el6_1.4 will be installed\n--> Processing Dependency: perl(URI) >= 1.17 for package: subversion-1.6.11-2.el6_1.4.i686\n--> Processing Dependency: libneon.so.27 for package: subversion-1.6.11-2.el6_1.4.i686\n--> Running transaction check\n---> Package neon.i686 0:0.29.3-1.2.el6 will be installed\n--> Processing Dependency: libpakchois.so.0 for package: neon-0.29.3-1.2.el6.i686\n---> Package perl-URI.noarch 0:1.40-2.el6 will be installed\n--> Running transaction check\n---> Package pakchois.i686 0:0.4-3.2.el6 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n====================================================================================================\n Package              Arch            Version                   Repository                     Size\n====================================================================================================\nInstalling:\n mod_dav_svn          i686            1.6.11-2.el6_1.4          CentOS6.2-Repository           79 k\n subversion           i686            1.6.11-2.el6_1.4          CentOS6.2-Repository          2.2 M\nInstalling for dependencies:\n neon                 i686            0.29.3-1.2.el6            CentOS6.2-Repository          120 k\n pakchois             i686            0.4-3.2.el6               CentOS6.2-Repository           21 k\n perl-URI             noarch          1.40-2.el6                CentOS6.2-Repository          117 k\n\nTransaction Summary\n====================================================================================================\nInstall       5 Package(s)\n\nTotal download size: 2.6 M\nInstalled size: 12 M\nDownloading Packages:\n----------------------------------------------------------------------------------------------------\nTotal                                                               7.3 MB\/s | 2.6 MB     00:00\nRunning rpm_check_debug\nRunning Transaction Test\nTransaction Test Succeeded\nRunning Transaction\n  Installing : perl-URI-1.40-2.el6.noarch                                                       1\/5\n  Installing : pakchois-0.4-3.2.el6.i686                                                        2\/5\n  Installing : neon-0.29.3-1.2.el6.i686                                                         3\/5\n  Installing : subversion-1.6.11-2.el6_1.4.i686                                                 4\/5\n  Installing : mod_dav_svn-1.6.11-2.el6_1.4.i686                                                5\/5\n\nInstalled:\n  mod_dav_svn.i686 0:1.6.11-2.el6_1.4               subversion.i686 0:1.6.11-2.el6_1.4\n\nDependency Installed:\n  neon.i686 0:0.29.3-1.2.el6      pakchois.i686 0:0.4-3.2.el6      perl-URI.noarch 0:1.40-2.el6\n\nComplete!\n<\/pre>\n<p>2. Setting up directories<\/p>\n<pre>\n[root@svn ~]# mkdir \/svn\n[root@svn ~]# mkdir \/svn\/repos\n[root@svn ~]# mkdir \/svn\/users\n[root@svn ~]# mkdir \/svn\/permissions\n[root@svn ~]# chown -R apache:apache \/svn\n<\/pre>\n<p>3. Configure httpd Apache server as below:<\/p>\n<pre>\n&lt;VirtualHost *:80&gt;\n    ServerAdmin webmaster@svn.ehowstuff.local\n    DocumentRoot \/svn\/repos\n    ServerName svn.ehowstuff.local\n    ErrorLog logs\/svn.ehowstuff.local-error_log\n    CustomLog logs\/svn.ehowstuff.local-access_log common\n&lt;\/VirtualHost&gt;\n<\/pre>\n<p>4. Create and Configure subversion.conf<\/p>\n<pre>\n[root@svn ~]# vi \/etc\/httpd\/conf.d\/subversion.conf\n<\/pre>\n<pre>\nLoadModule dav_svn_module     modules\/mod_dav_svn.so\nLoadModule authz_svn_module   modules\/mod_authz_svn.so\n\n&lt;Location \/svn\/repos&gt;\n        DAV svn\n        SVNParentPath \/svn\/repos\n        AuthType Basic\n        AuthName &quot;Authorization Realm&quot;\n        AuthUserFile \/svn\/users\/passwords\n        AuthzSVNAccessFile \/svn\/permissions\/svnaccess\n        Require valid-user\n&lt;\/Location&gt;\n<\/pre>\n<p>5. Create first repository using svnadmin command<\/p>\n<pre>\n[root@svn ~]# svnadmin create \/svn\/repos\/testrepo\n[root@svn ~]# chown -R apache:apache \/svn\/repos\/testrepo\n<\/pre>\n<p>6. Create htpasswd user to access the testsvn repository<\/p>\n<pre>\n[root@svn ~]# htpasswd -c \/svn\/users\/passwords svnuser1\nNew password:\nRe-type new password:\nAdding password for user svnuser1\n<\/pre>\n<p>7. Create svnaccess file to access the testrepo repository<\/p>\n<pre>\n[groups]\ntestgroup = svnuser1\n\n[testrepo:\/]\n@testgroup = rw\n<\/pre>\n<p>8. Test your subversion server from browser :<\/p>\n<p>http:\/\/svn.ehowstuff.local\/svn\/repos\/testrepo\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Subversion is a open source version control system that will manages files and will keep the changes made to the files. In this post i will share the quick steps&#8230;<\/p>\n","protected":false},"author":6,"featured_media":2280,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055],"tags":[1244,1536,1546,1811],"class_list":["post-3212","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-centos","tag-linux","tag-linux-utilities","tag-subversion"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=3212"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3212\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/2280"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=3212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=3212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=3212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}