Installing WebSVN on Centos 6.7

WebSVN is tool to view onto your subversion repositories that been designed to reflect the Subversion methodology. You can view the log of any file or directory and see a list of all the files changed, added or deleted in any given revision. You can also view the differences between two versions of a file so as to see exactly what was changed in a particular revision.

Features:
WebSVN offers the following features:

Easy to use interface;
Customisable templating system;
Colourisation of file listings;
Blame view;
Log message searching;
RSS feed support.

Assuming that you have aleady installed the Subbersion, or follow the link to setup SVN, click here


Installation

1. Download the websvn to /var/www/html.

# cd /var/www/html
# wget http://websvn.tigris.org/files/documents/1380/49057/websvn-2.3.3.zip

2.  Extract the zip package.

# unzip websvn-2.3.3.zip
# mv websvn-2.3.3 websvn

3.  Installl php to your system.

#  yum install php


4. Edit web svn config.

# cd /var/www/html/websvn/include
# mv distconfig.php config.php
# vi config.php


// Configure these lines if your commands aren't on your path.
//
 $config->setSVNCommandPath('/usr/bin');
 $config->setDiffPath('/usr/bin');
// For syntax colouring, if option enabled...
 $config->setEnscriptPath('/usr/bin');
 $config->setSedPath('/bin');
// For delivered tarballs, if option enabled...
 $config->setTarPath('/bin');
// For delivered GZIP'd files and tarballs, if option enabled...
 $config->setGZipPath('/bin');
//
 $config->parentPath('/var/www/svn/');
$extEnscript[".pl"] = "perl";
$extEnscript[".py"] = "python";
$extEnscript[".sql"] = "sql";
$extEnscript[".java"] = "java";
$extEnscript[".html"] = "html";
$extEnscript[".xml"] = "html";
$extEnscript[".thtml"] = "html";
$extEnscript[".tpl"] = "html";
$extEnscript[".sh"] = "bash";
~



5.  Reload apache and start websvn link http://ip/websvn.

# service httpd restart

Adding authentication you can add this configuration

vi /etc/httpd/conf.d/websvn.conf


Alias /svn /var/www/html/websvn
<Directory /var/www/html/websvn>
                DirectoryIndex index.php
                Options FollowSymLinks
                Order allow,deny
                Allow from all
                AuthType Basic
                AuthName "Subversion repository"
                 AuthUserFile /etc/svn-auth-users
                Require valid-user
</Directory>




Adding users to authentication file

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

## Create testuser2 ##
htpasswd -m /etc/svn-auth-users testuser2
New password:
Re-type new password:

Adding password for user testuser2






Keywords: Subversion, SVN, SVN Server, Adding Users on SVN Server, Backup SVN, Restore SVN.

Comments

Popular posts from this blog

Observium: Configuring Microsoft Windows 2008 Server SNMP Agent

AWS: Upgrade PV Drivers on Windows Instances

How to configure Incremental backups for MSSQL Database