[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: KM <info4km_at_yahoo.com>
Date: 2006-01-06 22:20:01 CET

  so /usr/local/svn is actually a directory not a repository then? - it seems to me that your projectA and projectB should be repositories -
   
  I kind of lost track at this point - what is the ParentPath set to and what is the actual start of the repository -
   
  the SVNParentPath should point to the directory above the repository(ies). I did double check that we are running our httpd daemons as the same user that own the subversion repository trees.
   
  If the ParentPath is causing problems you can leave it out and explicitly point to each repository that you share/advertise
   
  hope this helps.
  KM
  
"Maninder Singh(SDG)" <singhma@quark.com> wrote:
  Hello Again,
I think we are closing down, but still a little far from
perfect. Well, I am now running Apache with user name "svnadmin" (and
group common) and the same owns, the svn repository (/usr/local/svn); as
suggested. So that matches the permissions of the svn repository with
that of the Apache user. "apache2-2.0.54-10" is installed under:
/usr/local/apache2/

I've also checked the Apache error logs (both
/usr/local/apache2/logs/error_log and
/usr/local/apache2/logs/access_log) but there's no entry there except
for the following:

"[Fri Jan 06 16:08:30 2006] [notice] Apache/2.2.0 (Unix) DAV/2 SVN/1.2.3
configured -- resuming normal operations"
Guess, something else is missing!
Appreciate your timely help.

Regards,
Maninder Singh

-----Original Message-----
From: Matthew Janulewicz [mailto:Matthew.Janulewicz@nextestate.com]
Sent: Thursday, January 05, 2006 11:04 PM
To: Maninder Singh(SDG); Ryan Schmidt
Cc: users@subversion.tigris.org
Subject: RE: RE: Newbie to SVN- Need Help regarding Apache
configuration.

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:
>
> 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.
>

> Require valid-user
>
>

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

                
---------------------------------
 Yahoo! DSL Something to write home about. Just $16.99/mo. or less
Received on Fri Jan 6 22:23:08 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.