{"id":486,"date":"2019-05-26T04:57:01","date_gmt":"2019-05-26T04:57:01","guid":{"rendered":"https:\/\/www.24x7serversupport.com\/24x7serversupport-blog\/?p=486"},"modified":"2019-05-26T04:57:01","modified_gmt":"2019-05-26T04:57:01","slug":"how-to-install-svn-server-on-centos-6","status":"publish","type":"post","link":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-svn-server-on-centos-6\/","title":{"rendered":"How to Install svn server on centos 6"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">SVN \u2013 Apache subversion<\/h2>\n\n\n\n<p><ins><\/ins><\/p>\n\n\n\n<p>SVN \u2013 Subversion is a versioning and revision control system used by developers to track and keep up earlier versions of their source codes.<\/p>\n\n\n\n<p>Update yum repositories and packages by typing the below command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7 ~]  yum update<\/pre>\n\n\n\n<p>Before installing SVN packages, you must install and configure apache ( Webserver ) .<\/p>\n\n\n\n<p><strong>\u00bb<\/strong>&nbsp;Type the below command to install apache along with dependencies.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7 ~]  yum install httpd<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\u00bb Open the file \/etc\/httpd\/conf\/httpd.conf .<br \/> Find \u201c#ServerName www.24x7ss.com:80\u2033 <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> <code>#ServerName www.24x7ss.com.com:80<\/code><\/pre>\n\n\n\n<p>and add this line below . \u201cServerName youripaddress:80\u2033<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> #ServerName www.24x7ss.com:80\nServerName 192.168.1.2:80  <\/pre>\n\n\n\n<p><strong>&nbsp;\u00bb<\/strong>&nbsp;Issue the below command to start apache service . <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7 ~]  service httpd start<\/pre>\n\n\n\n<p>and type this below command to start apache service automatically while booting.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7 ~]   chkconfig --levels 235 httpd on<\/pre>\n\n\n\n<p>Now open your server ip address in the browser . you can see the apache test page.<\/p>\n\n\n\n<p>If you not able to see the apache test page, Disable the firewall ( iptables ) and selinux service on your server .<br \/> Disable firewall ( Iptables ) \u00bb<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7ss ~] # service iptables stop<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7ss ~] # chkconfig iptables off<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Disable Selinux \u00bb open the file \/etc\/selinux\/config and find the line<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">  SELINUX=enforcing <\/pre>\n\n\n\n<p>and replace with<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">  SELINUX=disabled <\/pre>\n\n\n\n<p>now reboot the server and try again.<\/p>\n\n\n\n<p>Install and configure svn server<br \/> Step 4 \u00bb Now start installing svn packages, Just type the below command .<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7ss ~] # yum install subversion mod_dav_svn<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Step 5 \u00bb Now create new directory for svn repository.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7ss ~] # mkdir \/svn<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Step 6 \u00bb Create a new repository in the svn by issuing the below command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7ss ~] # svnadmin create \/svn\/newrep<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Step 7 \u00bb Now issue the below commands one by one for necessary permissions.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7ss ~] # chown -R apache.apache \/svn\/newrep\/<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7ss ~] # chcon -h system_u:object_r:httpd_sys_content_t \/svn\/newrep\/<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7ss ~] # chcon -R -h apache:object_r:httpd_sys_content_t \/svn\/newrep\/<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Step 8 \u00bb Now create a password file \u201cnewrep.users\u201d with username \u201c24x7ss\u201d by typing below command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7ss ~] # htpasswd -cm \/svn\/newrep.users 24x7ss<\/pre>\n\n\n\n<p>Step 9 \u00bb Now open the SVN apache config file ( \/etc\/httpd\/conf.d\/subversion.conf ) and add the below lines at the end of the file .<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> DAV svn\n SVN path\n SVNParentPath \/svn\n AuthType Basic\n AuthName \"Authorization Realm\"\n password file path\n AuthUserFile \/svn\/newrep.users\n Require valid-user\n \n \n DAV svn\n SVN path\n SVNParentPath \/svn\n AuthType Basic\n AuthName \"Authorization Realm\"\n password file path\n AuthUserFile \/svn\/newrep.users\n Require valid-user<\/pre>\n\n\n\n<p>\u00bb Restart apache service<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7ss ~]# service httpd restart<\/pre>\n\n\n\n<p>Step 11 \u00bb Now open your svn path http:\/\/yourserverip\/repos\/newrep in a browser( Ex: http:\/\/192.168.2.1\/repos\/newrep ) . you can see newrep revision page after typing username and password created (step 8).<\/p>\n\n\n\n<p>install svn server centos 6<br \/> Step 12 \u00bb Create basic repository structure with the below commands<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7ss ~] # mkdir -p \/tmp\/svn\/{trunk,branches,tags}<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@24x7ss ~] # svn import -m 'Initializing basic repository structure' \/tmp\/svn\/ http:\/\/localhost\/repos\/newrep\/<\/pre>\n\n\n\n<p>Step 13 \u00bb  Now you can see updated revision and structure details .<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SVN \u2013 Apache subversion SVN \u2013 Subversion is a versioning and revision control system used by developers to track and keep up earlier versions of their source codes. Update yum repositories and packages by typing the below command [root@24&#215;7 ~] yum update Before installing SVN packages, you must install and configure apache ( Webserver ) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[30],"tags":[119,79,120,121],"class_list":["post-486","post","type-post","status-publish","format-standard","hentry","category-centos","tag-apache","tag-centos6","tag-installation","tag-svn"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install SVN server on centos6<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-svn-server-on-centos-6\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install SVN server on centos6\" \/>\n<meta property=\"og:description\" content=\"SVN \u2013 Apache subversion SVN \u2013 Subversion is a versioning and revision control system used by developers to track and keep up earlier versions of their source codes. Update yum repositories and packages by typing the below command [root@24x7 ~] yum update Before installing SVN packages, you must install and configure apache ( Webserver ) [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-svn-server-on-centos-6\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7serversupport Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-26T04:57:01+00:00\" \/>\n<meta name=\"author\" content=\"24x7support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:site\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"24x7support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-svn-server-on-centos-6\/\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-svn-server-on-centos-6\/\",\"name\":\"How to install SVN server on centos6\",\"isPartOf\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\"},\"datePublished\":\"2019-05-26T04:57:01+00:00\",\"dateModified\":\"2019-05-26T04:57:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-svn-server-on-centos-6\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-svn-server-on-centos-6\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-svn-server-on-centos-6\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.24x7serversupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install svn server on centos 6\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/\",\"name\":\"24x7serversupport Blog\",\"description\":\"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\",\"name\":\"24x7support\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install SVN server on centos6","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-svn-server-on-centos-6\/","og_locale":"en_US","og_type":"article","og_title":"How to install SVN server on centos6","og_description":"SVN \u2013 Apache subversion SVN \u2013 Subversion is a versioning and revision control system used by developers to track and keep up earlier versions of their source codes. Update yum repositories and packages by typing the below command [root@24x7 ~] yum update Before installing SVN packages, you must install and configure apache ( Webserver ) [&hellip;]","og_url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-svn-server-on-centos-6\/","og_site_name":"24x7serversupport Blog","article_published_time":"2019-05-26T04:57:01+00:00","author":"24x7support","twitter_card":"summary_large_image","twitter_creator":"@24x7serversuppo","twitter_site":"@24x7serversuppo","twitter_misc":{"Written by":"24x7support","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-svn-server-on-centos-6\/","url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-svn-server-on-centos-6\/","name":"How to install SVN server on centos6","isPartOf":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#website"},"datePublished":"2019-05-26T04:57:01+00:00","dateModified":"2019-05-26T04:57:01+00:00","author":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401"},"breadcrumb":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-svn-server-on-centos-6\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7serversupport.com\/blog\/how-to-install-svn-server-on-centos-6\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-svn-server-on-centos-6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7serversupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install svn server on centos 6"}]},{"@type":"WebSite","@id":"https:\/\/www.24x7serversupport.com\/blog\/#website","url":"https:\/\/www.24x7serversupport.com\/blog\/","name":"24x7serversupport Blog","description":"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401","name":"24x7support","url":"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/comments?post=486"}],"version-history":[{"count":0,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/486\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media?parent=486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/categories?post=486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/tags?post=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}