What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » subversion and apache

subversion and apache
Author: Message:
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
O.P. subversion and apache
for reasons that do not need explaining here, I'm trying to move my subversion repositories to my local server thats running Windows 2003 and apache 2.2.9.

subversion is running in a VirtualHost with a web address of svn.local.meetcweb.com
at that address, its still just regular HTTP, I plan on adding a web based SVN browser there. The only current repository that I have is svn.local.meetcweb.com/yass_server

The current setup in httpd.conf:
code:
NameVirtualHost *:80

<VirtualHost *:80>
    ServerName local.meetcweb.com
    ServerAlias local.meetcweb.com local
    DocumentRoot "W:/www/"
    ErrorLog W:/logs/apache_error.log
    CustomLog W:/logs/apache_access.log common
</VirtualHost>


<VirtualHost *:80>
    DocumentRoot "W:/websvn/"
    ServerAlias svn
    ServerName svn.local.meetcweb.com

    ErrorLog W:/logs/apache_svn_error.log
    CustomLog W:/logs/apache_svn_access.log common

    <Directory "W:/websvn/">
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
        Deny from none
    </Directory>

    <Location /yass_server>
        DAV svn
        SVNPath W:/svn/yass_server

@        AuthzSVNAccessFile W:/svn/yass_server.access
        Satisfy Any
@        Require valid-user

@        AuthType Basic
@        AuthName "SVN Repositories"
@        AuthUserFile W:/svn/yass_server.user
    </Location>
</VirtualHost>


So whats happening now is the HTTP site will load fine regardless of settings. The lines above with @ are for authentication purposes. When these lines are commented (no authentication), then the repo is accessible and checkouts can be made. However for any write action to the server (commits, locks etc) I get errors:
quote:
Commit failed (details follow):
MKACTIVITY of '/yass_server/!svn/act/effa2d10-619f-0748-8569-29e97ea4ea0a':
Could not read status line: An existing connection was forcibly closed by the
remote host.
(http://svn.local.meetcweb.com)

and for requesting a lock, just a normal HTTP 401 - Auth required (but no prompts to login)

After un-commenting the auth lines, the repository is inaccessible. Firefox gives an error:
quote:
Connection Interrupted
The connection to the server was reset while the page was loading.
The network link was interrupted while negotiating a connection. Please try again.
and tortoisesvn:
quote:
OPTIONS of 'http://svn.local.meetcweb.com/yass_server': Could not read status
line: An existing connection was forcibly closed by the remote host.
(http://svn.local.meetcweb.com)


So yeah, I need some help in getting this thing running, anyone know some stuff about apache? In the end what I want to be able to have is allow anonymous read access, and require to login to be able to write info to the server

This post was edited on 10-03-2008 at 04:43 AM by MeEtc.
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
10-03-2008 04:41 AM
Profile PM Web Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
O.P. RE: subversion and apache
wow, I think i finally have it running.
what the problem was, i'm not quite sure, but a few things that might have lead to success:
playing around with different combinations of different apache module versions for mod_authz_svn.so, mod_dav.so, mod_dav_fs.so and mod_dav_svn.so mostly mod_authz_svn.so i think might have been the cause, I kept getting event log entries when restarting apache
quote:
Syntax error on line 130 of F:/wamp/bin/apache/apache2.2.8/conf/httpd.conf: Cannot load F:/wamp/bin/apache/apache2.2.8/modules/mod_authz_svn.so into server: The specified module could not be found.
even though the file does exist

tried using both apache 2.2.8 and .9, finally got the original .8 to run
using WAMPServer, mod_authz_svn.so from the apache 2.2 binaries from subversion.tigris.org,
The binary package for svnserver is the CollabNet win32 installer

hopefully this info can save someone else a few hours worth of experimenting and research
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
10-03-2008 06:40 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On