You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Mark Watts <mw...@stny.rr.com> on 2003/06/07 12:30:33 UTC

SVNServe andWindows

Up to this point I have been using subversion locally and am now ready to
move the repository to a network server.  However I am having a few problems

1.  I have read the book, INSTALL in the source directory etc, and find no
instructions for installing subversion using Apache binaries.  Everything
seams to be instructions for compiling everything for windows and I don't
really have the time to figure out how to do that.  I want to use it.  Yet
someone a few days ago indicated they had Subversion up and running in 5 min
using windows and Apache.  Any pointers on how it was done?  Have I missed
some documentation?

2.  svnserver: no matter what I try, I can't get the client to connect to
svnserver. Tried running across the network, locally, adding the appropriate
groups to the servers file, etc.  No joy.  I am starting it with the
following parameters
  svnserve -r c:\svn
The client always returns with 
[I:\]svn log svn://localhost/trunk
svn: No connection could be made because the target machine actively refused
it.
svn: Can't connect to host 'localhost'

Thanks for all the help in the past and any help with these questions is
much appreciated.
  
-Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: SVNServe andWindows

Posted by Francois Beausoleil <fb...@users.sourceforge.net>.
I'm a Win32 user and have managed to use SVN using both the http and svn
protocols.

On 07 Jun 2003 08:13:27 -0500, "Ben Collins-Sussman" <su...@collab.net>
said:
> "Mark Watts" <mw...@stny.rr.com> writes:
> 
> > 1.  I have read the book, INSTALL in the source directory etc, and find no
> > instructions for installing subversion using Apache binaries.  Everything
> > seams to be instructions for compiling everything for windows and I don't
> > really have the time to figure out how to do that.  I want to use it.  Yet
> > someone a few days ago indicated they had Subversion up and running in 5 min
> > using windows and Apache.  Any pointers on how it was done?  Have I missed
> > some documentation?
> 
> I don't think it's documented, not sure.  Some win32 person will have
> to answer.
> 

I installed the Apache Win32 binaries.  Then I copied the mod_dav_svn.so
file from the Subversion binary distribution to Apache's modules folder. 
Can't remember the exact name but it had a bunch of other *.so files in
it.

Then, I modified Apache's configuration file as specified in INSTALL, and
Apache started serving repositories accross the network.

> >   svnserve -r c:\svn

Add the -d option.  This will make it a daemon and everything will be all
right.

> 
> Um, that makes svnserve interact with stdin/stdout.  Don't you want it
> attached to a network port instead?  I don't think you read the entire
> explanation of svnserve in the book.  :-)
> 
> If you're on Unix, add '-d' to make it background as a daemon
> listening on port 3690.  Or run it from inetd.
> 
> Or instead, have your client invoke a remote ssh process that invokes
> a private svnserve.  In that case, no need to run svnserve as a
> daemon at all.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
> 
> 
--
  Francois Beausoleil
  Developer of Java Gui Builder
  http://jgb.sourceforge.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

RE: SVNServe andWindows

Posted by Mark Watts <mw...@stny.rr.com>.
> -----Original Message-----
> From: sussman@collab.net [mailto:sussman@collab.net] 
> Sent: Saturday, June 07, 2003 09:13
> To: Mark Watts
> Cc: dev@subversion.tigris.org
> 
> "Mark Watts" <mw...@stny.rr.com> writes:
> 
> > 1.  I have read the book, INSTALL in the source directory etc, and 
> > find no instructions for installing subversion using Apache 
> binaries.  
> > Everything seams to be instructions for compiling everything for 
> > windows and I don't really have the time to figure out how 
> to do that.  
> > I want to use it.  Yet someone a few days ago indicated they had 
> > Subversion up and running in 5 min using windows and Apache.  Any 
> > pointers on how it was done?  Have I missed some documentation?
> 
> I don't think it's documented, not sure.  Some win32 person 
> will have to answer.
> 
> >   svnserve -r c:\svn
> 
> Um, that makes svnserve interact with stdin/stdout.  Don't 
> you want it attached to a network port instead?  I don't 
> think you read the entire explanation of svnserve in the book.  :-)

Actually I did read it.  Just didn't sink in "When started with the -d
option, svnserve will immediately detach from the current shell process, and
will execute as a background process which runs indefinitely, again waiting
for incoming requests on port 3690."

I didn't quite grasp that this also applied to Windows :( .  

Thanks for the help.  It all works now.

-Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: SVNServe andWindows

Posted by Ben Collins-Sussman <su...@collab.net>.
"Mark Watts" <mw...@stny.rr.com> writes:

> 1.  I have read the book, INSTALL in the source directory etc, and find no
> instructions for installing subversion using Apache binaries.  Everything
> seams to be instructions for compiling everything for windows and I don't
> really have the time to figure out how to do that.  I want to use it.  Yet
> someone a few days ago indicated they had Subversion up and running in 5 min
> using windows and Apache.  Any pointers on how it was done?  Have I missed
> some documentation?

I don't think it's documented, not sure.  Some win32 person will have
to answer.

>   svnserve -r c:\svn

Um, that makes svnserve interact with stdin/stdout.  Don't you want it
attached to a network port instead?  I don't think you read the entire
explanation of svnserve in the book.  :-)

If you're on Unix, add '-d' to make it background as a daemon
listening on port 3690.  Or run it from inetd.

Or instead, have your client invoke a remote ssh process that invokes
a private svnserve.  In that case, no need to run svnserve as a
daemon at all.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: SVNServe andWindows

Posted by Edmund Horner <ed...@chrysophylax.cjb.net>.
> 1.  I have read the book, INSTALL in the source directory etc, and find no
> instructions for installing subversion using Apache binaries.  Everything
> seams to be instructions for compiling everything for windows and I don't
> really have the time to figure out how to do that.  I want to use it.  Yet
> someone a few days ago indicated they had Subversion up and running in 5 min
> using windows and Apache.  Any pointers on how it was done?  Have I missed
> some documentation?

I might be wrong here, but I think you want to set up Subversion (0.23?) 
using mod_dav_svn on Apache.  These are the things I would check to get 
it working:

1. Do you have Apache working (just as a normal webserver) on Windows?

2. Do you have a repository (or repositories) on the Apache machine that 
you can access locally (with the file:// scheme)?

3. If yes to both, what I would try is copy mod_dav_svn.so into the 
Apache/modules directory, add a few lines to Apache/conf/httpd.conf, and 
restart Apache.

I had some trouble getting the module to work properly, but it should be 
quite easy now if you have compatible Subversion and Apache versions. 
Mine is working nicely with 0.23 on httpd 2.0.45.

The lines from my httpd.conf file are (I haven't edited them in any way, 
so I am baring my soul here...):

     # Load Subversion.
     LoadModule dav_svn_module modules/mod_dav_svn.so
     <IfModule mod_dav_svn.c>
     <Location /repos/>
         DAV svn
         SVNPath "E:/svn/"
         SVNReposName "Edmund's Subversion Repository"
         Order deny,allow
         Deny from all
         Allow from 127.0.0.1 chrysophylax chrysophylax.cjb.net
     </Location>

     <Location /repos-xml/>
         DAV svn
         SVNPath "E:/svn/"
         SVNReposName "Edmund's Subversion Repository - XML View"
         Order deny,allow
         Deny from all
         Allow from 127.0.0.1 chrysophylax chrysophylax.cjb.net
         SVNIndexXSLT /svnindex.xsl
     </Location>
     </IfModule>

Good luck with getting it to work.

Edmund Horner.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org