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

Re: can access the repositry thru url in apache

From: Ryan Schmidt <ryandesign_at_macports.org>
Date: Sat, 12 Jan 2008 16:14:34 -0600

On Jan 12, 2008, at 14:42, Kevin Grover wrote:

> On Jan 12, 2008 12:27 PM, Taqdees Malik wrote:
>> I'm trying to set up subversion repository on my local machine to
>> learn the ins and outs of subversion. I was able to create the
>> repository with subversion 1.4.6 and check out the files using
>> command prompt. Then I installed apache, one of the 2.x versions
>> and got it up and running. I tested apache using the http://
>> localhost/ in the browser and got the "It Works" in the the
>> browser. Then I modified the httpd.conf file according to
>> documentation and added the three lines in there.
>> LoadModule dav_module modules/mod_dav.so
>> LoadModule dav_svn_module modules/mod_dav_svn.so
>> <Location /repos>
>> DAV svn
>> SVNPath c:\svnreposnew
>> </Location>
>> I started apache which comes up fine. Now I type http://localhost/
>> repos/StdCare in the url but I get page not found. StdCare is my
>> project name. I'm really stuck at this point. Does any one have an
>> idea of what might be wrong. Any help is appreciated.
> What OS version?
> Have you checked the Apache log files (for messages/errors)?
> Are the SVN Modules loading OK? (see #2)
> Where (in your file system) is the repository? The SVNPath points
> to the directory that HOLDs the repositories. For example, I use
> 'c:\repos\svn' as a parent directory and create all repositories in
> there. 'svnadmin create c:\repos\svn\ProjectFoo', 'svnadmin create
> c:\repos\svn\ProjectBar', so I'd point SVNPath to 'c:\repos\svn'.

Incorrect. SVNPath needs to point AT the repository. If you want to
point at a directory that contains other repositories, you would use

> What user is Apache running as? Do they have read (and write?)
> access to the files holding the repository? NOTE: On Windows, is
> probably not the problem.
> From your SVNPath, you appear to be running a windows variant. If
> you install Apache _before_ installing Subversion (command line
> client), the svn cli will see Apache and install the .so files for
> you (at least it used to a long time ago..) [The modules must be
> in the correct place, or you must refer to them by explicit path]
> Did you RTFM? The manual is a good resource http://svnbook.red-
> bean.com/

In an httpd.conf, slashes should be forward slashes, even on Windows.
So you need:

SVNPath c:/svnreposnew

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-12 23:15:39 CET

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

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