{"id":763,"date":"2011-04-03T18:32:46","date_gmt":"2011-04-03T10:32:46","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=763"},"modified":"2023-04-28T09:50:32","modified_gmt":"2023-04-28T09:50:32","slug":"how-to-install-websvn-for-subversion-on-centos","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-websvn-for-subversion-on-centos\/","title":{"rendered":"How to Install WebSVN for Subversion on CentOS"},"content":{"rendered":"<p>In this post, i will guide you on how to set up the WebSVN in your subversion repository. WebSVN will enable you to view your subversion repositories with default useful features as below:-<\/p>\n<ul>\n<li>Blame (annotation) view of file authorship<\/li>\n<li>Comparing revisions of files \/ directories<\/li>\n<li>Revision and log message browsing \/ searching<\/li>\n<li>RSS feed support for watching any resource<\/li>\n<\/ul>\n<p>In order to enable other features such as path-based restriction of privileges, proper customization of config.php code is needed. At the time of this article wrote, the current release of WebSVN is <a href=\"http:\/\/websvn.tigris.org\/files\/documents\/1380\/48737\/websvn-2.3.2.tar.gz\" target=\"_blank\" rel=\"noopener\">WebSVN Release 2.3.2<\/a>.<\/p>\n<p>Prerequisite :<br \/>\n<a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-install-apache-httpd-web-server-on-linux\/\" target=\"_blank\" rel=\"noopener\">1. How to Install Apache Httpd Web Server on Linux<\/a><br \/>\n<a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-install-subversion-1-6-16-on-centos-5-5-server\/\" target=\"_blank\" rel=\"noopener\">2. How to Install Subversion on CentOS 5.5 Server<\/a><\/p>\n<p>Steps to install WebSVN :<br \/>\n1. Download the <a href=\"http:\/\/websvn.tigris.org\/files\/documents\/1380\/48737\/websvn-2.3.2.tar.gz\" target=\"_blank\" rel=\"noopener\">WebSVN Release 2.3.2<\/a><br \/>\nYou can wget as below. Make sure that you put it or move it to your repository directory.<\/p>\n<ol>\n<pre class=\"code\">[root@server repos]# pwd\n\/svn\/repos\n[root@server repos]# http:\/\/websvn.tigris.org\/files\/documents\/1380\/48737\/websvn-2.3.2.tar.gz\n-bash: http:\/\/websvn.tigris.org\/files\/documents\/1380\/48737\/websvn-2.3.2.tar.gz: No such file or directory\n[root@server repos]# clear\n[root@server repos]# pwd\n\/svn\/repos\n[root@server repos]# wget http:\/\/websvn.tigris.org\/files\/documents\/1380\/48737\/websvn-2.3.2.tar.gz\n--2011-04-03 17:53:20--  http:\/\/websvn.tigris.org\/files\/documents\/1380\/48737\/websvn-2.3.2.tar.gz\nResolving websvn.tigris.org... 204.16.104.146\nConnecting to websvn.tigris.org|204.16.104.146|:80... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 846511 (827K) [application\/x-gzip]\nSaving to: `websvn-2.3.2.tar.gz'\n\n100%[===========================================&gt;] 846,511     72.9K\/s   in 31s\n\n2011-04-03 17:53:53 (26.5 KB\/s) - `websvn-2.3.2.tar.gz' saved [846511\/846511]\n<\/pre>\n<\/ol>\n<p>2. Extract and unzip the websvn-2.3.2.tar.gz using below command and rename it as websvn for easy browsing URL as below:<br \/>\nhttp:\/\/servername\/websvn\/<\/p>\n<ol>\n<pre class=\"code\">[root@server repos]# tar xvfz websvn-2.3.2.tar.gz\n[root@server repos]# mv websvn-2.3.2 websvn\n<\/pre>\n<\/ol>\n<p>3. Go to websvn\/include directory. Make a copy of distconfig.php and name it as config.php. config.php will be the main configuration file of your WebSVN.<\/p>\n<ol>\n<pre class=\"code\">[root@server repos]# cd websvn\/include\n[root@server include]# ls\naccessfile.php  command.php      diff_util.php   setup.php     utils.php\nauth.php        configclass.php  distconfig.php  svnlook.php   version.php\nbugtraq.php     diff_inc.php     header          template.php\n[root@server include]# cp distconfig.php config.php\n<\/pre>\n<\/ol>\n<p>4. Edit the config.php file. Then uncomment line 106 and modify the parentPath as below:<\/p>\n<ol>\n<pre class=\"code\">[root@server include]# vi config.php\n106 \/\/ $config-&gt;parentPath('Path\/to\/parent (e.g. c:\\\\svn)');\n<\/pre>\n<\/ol>\n<p>Change to :<\/p>\n<ol>\n<pre class=\"code\">106 $config-&gt;parentPath('\/svn\/repos');\n<\/pre>\n<\/ol>\n<p>5. Save the config.php then test your http:\/\/servername\/websvn. If everything properly configured, you should see the page that lists your repositories.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, i will guide you on how to set up the WebSVN in your subversion repository. WebSVN will enable you to view your subversion repositories with default useful&#8230;<\/p>\n","protected":false},"author":6,"featured_media":349,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1060],"tags":[1536,1811],"class_list":["post-763","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-subversion","tag-linux","tag-subversion"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/763","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=763"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/763\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/349"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}