[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

apache and TSVN not playing nicely together

From: joshua vogelstein <joshuav_at_jhu.edu>
Date: 2007-12-24 21:09:58 CET

i am having trouble getting apache and tsvn working together. i've spent
the last day searching google to find all the fixes that people have tried,
but none have worked so far. here is my deal:

1) installed TSVN using ' TortoiseSVN-1.4.5.10425-win32-svn-1.4.5.msi' it is
currently working as demonstrated by the fact that i've created repositories
and checked out folders, etc., all locally. the repository location is:
'file:///C:/E/SVNRepository/'

thus, if i use repo-browser and type in 'file:///C:/E/SVNRepository/' (minus
the quotes), i can see my repository, and browse it no problem.

2) installed apache 2.0.x using apache_2.0.61-win32-x86-openssl-0.9.7m.msi
this was also successful as indicated by browsing to 'http://localhost' and
seeing the page that says it worked.

3) uncommented out the WebDAV lines in httpd.conf:

LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so

and added the svn module lines:

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

4) copied the svn modules named 'mod_authz_svn.so' and 'mod_dav_svn.so' from
'C:\Program Files\Subversion\bin' to 'C:\Program Files\Apache
Group\Apache2\modules'

5) i then appended the following lines onto the httpd.conf file:

<Location /svn>
DAV svn
SVNParentPath C:\E\SVNRepository
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile passwd
#AuthzSVNAccessFile svnaccessfile
Require valid-user
</Location>

6) opened a command prompt, and created a new password file with username
'test'

C:\Program Files\Apache Group\Apache2>bin\htpasswd -c passwd test
Automatically using MD5 format.
New password: *******
Re-type new password: *******
Adding password for user test

which worked based on the fact that a file called passwd is located in
'C:\Program Files\Apache Group\Apache2' with the word 'test' followed by a
bunch of garbled characters.

7) now, if i try to use the repo-browser, i get the wrong thing. on a good
day, i get the actual contents of the directory (*NOT *the repository), ie,
if i point my browser to 'http://localhost/svn/ ' then i get a list of files
and folders (conf, dav, db, format). on a bad day (eg, upon following
exactly the steps described above), i get an error message such as

You don't have permission to access /svn/ on this server.

if i try to browse to a particular folder within the repository, eg, '
http://localhost/svn/Articles', i get the following error message:

This XML file does not appear to have any style information associated with
it. The document tree is shown below.


<D:error>
<C:error/>
<m:human-readable errcode="720003">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>

if i use the repo-browser, after logging in using my username and password,
i get:
Error * PROPFIND request failed on '/svn' PROPFIND of '/svn':
403 Forbidden (http://127.0.0.1)

8) other things i've tried include
(a) copying 'libdb44.dll' from 'C:\Program Files\TortoiseSVN\bin\' into
'C:\Program Files\Apache Group\Apache2\bin'

(b) doing (a) and then renaming 'libdb44.dll' to 'libdb43.dll' as suggested
by various sites

(c) doing either (a) and (b)

(d) doing (a) or (b) or (c) and then also copying 'intl3_svn.dll' from the
same directory to the other.

(e) doing all the above steps using apache 2.2.6

(f) doing all the above steps using WAMP2.0a which includes apache 2.2.6

it seems to me that something trivial is wrong with the <location> module
that i added, but i can't seem to figure out exactly what. i'm very new to
all this, so any help would be greatly appreciated.

-- 
joshua vogelstein
johns hopkins
720 rutland ave, 426 traylor
baltimore, md 21205
usa
1-443-858-9911
"We don't live long enough to hate."
-- Sol Milgrome, friend, died at 104.
Received on Mon Dec 24 21:10:11 2007

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.