SVNWebClient Windows HOW-TO

Former SVN Browser
cpeter
Posts: 3
Joined: Fri Jan 05, 2007 1:48 pm

SVNWebClient Windows HOW-TO

Postby cpeter » Fri Jan 05, 2007 2:21 pm

SVNWebClient Windows HOW-TO

1) Installation:
Recommend (with sequence):
Apache 2.0.59.msi
svn-1.4.2-setup.exe
TortoiseSVN-1.4.1.7992-Win32-SVN-1.4.2.msi
mod_auth_sspi-1.0.4-2.0.58.zip
php-5.2.0.msi (optional?)
j2sdk-1_4_2_12-windows-i586-p.exe (without JRE)
jre-1_5_0_10-windows-i586-p-s.exe
apache-tomcat-5.5.20.exe
svnwebclient-2.5.0.zip

Optional:
enscript-1.6.3-9-bin.zip
libiconv-1.9.2-1-bin.zip (rename libiconv2.dll to libiconv-2.dll)
libintl-0.11.5-2-bin.zip

Please use the version listed up, I tried a lot JREs and TOMCATs and met lots strange problems, these versions tested under WIN2K & WINXP


2) Configuration
Apache
a) Add configuration about SVN and SSPI (refer to TortoiseSVN doc)
Example:

Code: Select all

LoadModule sspi_auth_module modules/mod_auth_sspi.so
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_svn_module "C:\Program Files\Subversion\bin\mod_dav_svn.so"
LoadModule authz_svn_module "C:\Program Files\Subversion\bin\mod_authz_svn.so"

<Location /svn>
DAV svn
SVNListParentPath on
SVNParentPath E:\SVN

AuthName "SVN"
AuthzSVNAccessFile "C:\Program Files\Apache Group\Apache2\svnaccess"

# NT Domain Logins.
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIDomain <domaincontroller>
SSPIOfferBasic On

# Htpasswd Logins.
AuthType Basic
AuthAuthoritative Off
AuthUserFile "C:\Program Files\Apache Group\Apache2\passwd"

Require valid-user
</Location>

b) Add configuration about mod_jk (refer to svnwebclient readme doc)
Example:

Code: Select all

#Configure mod_jk
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\workers.properties"
JkLogFile "C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\mod_jk.log"
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
Alias /examples "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\examples"
JkMount /examples/servlet/* testWorker
JkMount /examples/*.jsp testWorker

c) create passwd file (refer to TortoiseSVN doc)
Example:

Code: Select all

pcui:$apr1$Ia......$yaE6WoKfQ15oya.wGH1Vo.
peter:$apr1$db......$Wx7MyZoP8RlQTxO8RG1SA1

d) create svnaccess file (refer to TortoiseSVN doc)
Example:

Code: Select all

[groups]
admin = administrator
DEMO = pcui
TEST = peter

[/]
#* = r
@admin = rw
dangerman =

[DEMO:/]
@DEMO = rw

[TEST:/]
@TEST = rw


Tomcat
a) Add URIEncoding (refer to svnwebclient basicAuthenticationSettings doc)
Example:

Code: Select all

port="8080"               URIEncoding="UTF-8"

b) Create file “workers.properties” under %Tomcat%\conf\
Example:
C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\workers.properties

Code: Select all

workers.tomcat_home="C:\Program Files\Apache Software Foundation\Tomcat 5.5"
workers.java_home=C:/j2sdk1.4.2_12
ps=/
worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13


SVNWebClient
Refer to svnwebclient readme doc for detail, what I need to mention is that multi-repos setting you need to comment Username and Password. And don’t forget last “/” in ParentRepositoryDirectory.
Example:

Code: Select all

   
    <context-param>
        <param-name>ParentRepositoryDirectory</param-name>
        <param-value>http://localhost/svn/</param-value>
    </context-param>
   
    <!--
    <context-param>
        <param-name>Username</param-name>
        <param-value>ABC</param-value>
    </context-param>
    -->
       
    <!--
    <context-param>
        <param-name>Password</param-name>
        <param-value>abc</param-value>
    </context-param>   
    -->

    <context-param>
        <param-name>Logout</param-name>
        <param-value>true</param-value>
    </context-param>
   
    <context-param>
        <param-name>BasicAuth</param-name>
        <param-value>false</param-value>
    </context-param>

franc
Posts: 14
Joined: Sat Mar 03, 2007 9:57 am

Connector port="8009"

Postby franc » Mon May 14, 2007 8:40 pm

...and for Tomcat 5+ DONT use the Connector-settings like shown in
the basicAuthentication.txt
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75" acceptCount="10" debug="0"/>
But use the default settings in tomcats server.xml
<Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />


Return to “Polarion SVN Web Client”

Who is online

Users browsing this forum: No registered users and 6 guests