How to install and configure WebSVN

No replies
jose
jose's picture
User offline. Last seen 17 weeks 1 day ago. Offline
Joined: 03/30/2009

WebSVN offers a view onto your subversion repositories that's 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 2 versions of a file so as to see exactly what was changed in a particular revision.

WebSVN offers the following features:

* Easy to use interface
* Highly customisable templating system
* Colourisation of file listings
* Blame view
* Log message searching
* Apache MultiViews support
* RSS feed support
* Support for bugtraq: properties

Since it's written using PHP, WebSVN is also very portable and easy to install.

Install WebSVN is very simple. First you need to have version management system (Subversion), download WebSVN, extract the files in some folder you can access it via browsing for example:

/var/www/vhosts/mysite.com/httpdocs/websvn

Next, you have to rename the file "distconfig.php" into "include" directory to config.php and uncomment these two lines and add the correct paths:

//This is the parent directory where are all the repositories
$config->parentPath('/var/svn');
//The theme you want to use
$config->setTemplatePath("$locwebsvnreal/templates/BlueGrey/");
//And the correct path and name of the repository. You can call the function several times if you have several parent paths
$config->addRepository('NameToDisplay', 'file:///path/to/rep', 'options');

That's all Pizza

Note: Take care with PHP "mode safe" i had to turn it off to run WebSVN!