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

RE: RE: Newbie to SVN- Need Help regarding Apache configuration.

From: Matthew Janulewicz <Matthew.Janulewicz_at_nextestate.com>
Date: 2006-01-05 18:34:17 CET

I may be nuts, as I had a slew of bone-headed mess ups when I was doing
the same thing, but check the user Apache is running as. I had to make
sure the repo directory was owned by that user. I have to remember to
'su - www-data' before I 'svnadmin create'.

If I were the suspicious type, I might think you're starting svnserve as
the user who owns the files in the repo, but Apache is running as
someone else.

You'll either have to 'chown -R' the repo directory to the Apache user,
or change the Apache user and group in the apache2.conf file to match
the repo's ownership (then restart apache, of course!)

-Matt

-----Original Message-----
From: Maninder Singh(SDG) [mailto:singhma@quark.com]
Sent: Thursday, January 05, 2006 8:01 AM
To: Ryan Schmidt
Cc: users@subversion.tigris.org
Subject: RE: Newbie to SVN- Need Help regarding Apache configuration.

One more thing, I'm also running svnserve on this server and am able to
check-out the code using "svn://myserver/projectA"!!!

Regards,
Maninder Singh

-----Original Message-----
From: Maninder Singh(SDG)
Sent: Thursday, January 05, 2006 9:29 PM
To: 'Ryan Schmidt'
Cc: users@subversion.tigris.org
Subject: RE: Newbie to SVN- Need Help regarding Apache configuration.

Hi,
        Thanks for the quick help. The directory /usr/local/svn is a
repository (created by running the "svnadmin create /usr/local/svn"
command). I changed SVNParentPath to read SVNPath in the httpd.conf
file, but still no luck. :(

I've imported an initial layout for the repository as follows:

 myserver# svn import . file:///path/to/repos --message 'Initial
repository layout'

Adding projectA
Adding projectA/trunk
Adding projectA/branches
Adding projectA/tags
Adding projectB
Adding projectB/trunk
Adding projectB/branches
Adding projectB/tags
...
Committed revision 1.

On checking-out projectA using the string
"http://myserver:8000/projectA" (I even tried
http://myserver:8000/svn/projectA), I got a similar message again. Am I
missing something?

Regards,
Maninder Singh

-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2006Q1@ryandesign.com]
Sent: Thursday, January 05, 2006 7:30 PM
To: Maninder Singh(SDG)
Cc: users@subversion.tigris.org
Subject: Re: Newbie to SVN- Need Help regarding Apache configuration.

On Jan 5, 2006, at 14:34, Maninder Singh(SDG) wrote:

[snip]
> I get the following error when I try to check-out the code by
> specifying: http://myserver:8000/svn
>
> ================================== ERROR
> ==============================
> "Error: PROPFIND request failed on '/svn'
> Error: PROPFIND of '/svn': 403 Forbidden (http://10.91.0.217:8000)"
> ======================================================================

> =
>
> The Apache file contains the following entry:
> <Location /svn>
> DAV svn
> SVNParentPath /usr/local/svn
> # how to authenticate a user
> AuthType Basic
> AuthName "Subversion repository"
> AuthUserFile /usr/local/apache2/svnpasswd
>
> # For any operations other than these, require an authenticated
> user.
> <LimitExcept GET PROPFIND OPTIONS REPORT>
> Require valid-user
> </LimitExcept>
> </Location>

Is /usr/local/svn a repository (that is, did you run "svnadmin
create /usr/local/svn"), or is it a directory which contains several
repositories (that is, "mkdir /usr/local/svn; svnadmin create /usr/
local/svn/repo1")?

If the former, you need to change SVNParentPath to read SVNPath.
If the latter, you need to specify in the URL the name of the
repository you want to check out, for example http://myserver:8000/
svn/repo1

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 5 19:24:24 2006

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.