You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Faheem Mitha fa...@email.unc.edu on 2003/01/26 23:29:12 UTC

beginner question

Dear People,

I've been fiddling around with subversion on Debian Sarge, but without
a great deal of success. I have a number of questions, but here I'll
just ask one.

I am trying to configure apache2 correctly for network repositories. 

I have in my /etc/apache2/mods-available/dav_svn.conf

# dav_svn.conf - Example Subversion/Apache configuration
#
# For details and further options see the Apache user manual.

# Location URL ... /Location
# URL controls how the repository appears to the outside world.
# In this example clients access the repository as
# http://hostname/svn/repos
Location /svn/repos

  # DAV svn

  # set this to
  # SVNPath /var/svn
    SVNPath /home/faheem/subversion

[authentication stuff all commented out. Don't want to bother with
this for the moment]

/Location

My subversion repository is at /home/faheem/subversion, and apache is
listening at port 8080 on localhost. Is it correct syntax if I refer
to the repository as 

http://localhost:8080/svn/repos 

My understanding from the subversion book is that this would be
automatically translated into meaning /home/faheem/subversion, see
below...

However, I am currently getting error messages like 

svn: RA layer request failed
svn: PROPFIND of /: 405 Method Not Allowed

when I try to do anything. 

I apologise if I seem clueless, but I'm not really familar with apache
or cvs, so I'm kind of jumping in at the deep end here.

I'm not subscribed, so email me a copy of any reponse if you wish,
though I will be checking back with the list archives later in any
case.
                                              Faheem.

*******************************************************************
At a later location in your configuration file, you now need to tell
Apache where you keep your Subversion repository (or
repositories). The Location directive has an XML-like notation,
starting with an opening tag, and ending with a closing tag, with
various other configuration directives in the middle. The purpose of
the Location directive is to instruct Apache to do something special
when handling requests that are directed at a given URL or one of its
children. In the case of Subversion, you want Apache to simply hand
off support for URLs that point at versioned resources to the DAV
layer. You can instruct Apache to delegate the handling of all URLs
whose path portions (the part of the URL that follows the server's
name and the optional port number) begin with /repos/ to a DAV
provider whose repository is located at /absolute/path/to/repository
using the following httpd.conf syntax:

Location /repos
  DAV svn
  SVNPath /absolute/path/to/repository
/Location
*******************************************************************


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

RE: beginner question

Posted by Sander Striker st...@apache.org.
 From: news [mailto:news@main.gmane.org]On Behalf Of Faheem Mitha
 Sent: Monday, January 27, 2003 12:47 AM

[...]
 My apache error log has stuff like
 
 [Sun Jan 26 18:36:08 2003] [error] [client 127.0.0.1] Could not fetch
 resource information.  [500, #0]
 [Sun Jan 26 18:36:08 2003] [error] [client 127.0.0.1] Could not open
 the SVN filesystem at /home/faheem/subversion  [500, #160029]
 [Sun Jan 26 18:36:08 2003] [error] [client 127.0.0.1] (13)Permission
 denied: Berkeley DB error while opening environment for filesystem
 /home/faheem/subversion/db:
 
 But my home filesystem has global read permission.

It needs read-write permission.  See INSTALL, Section III.C, the final
note.

http://svn.collab.net/repos/svn/trunk/INSTALL, if you can't find it.


Sander


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

Re: beginner question

Posted by Faheem Mitha fa...@email.unc.edu.
On Sun, 26 Jan 2003 23:29:12 +0000 (UTC), Faheem Mitha
faheem@email.unc.edu wrote:
 
 However, I am currently getting error messages like 
 
 svn: RA layer request failed
 svn: PROPFIND of /: 405 Method Not Allowed
 
 when I try to do anything. 

My apache error log has stuff like

[Sun Jan 26 18:36:08 2003] [error] [client 127.0.0.1] Could not fetch
resource information.  [500, #0]
[Sun Jan 26 18:36:08 2003] [error] [client 127.0.0.1] Could not open
the SVN filesystem at /home/faheem/subversion  [500, #160029]
[Sun Jan 26 18:36:08 2003] [error] [client 127.0.0.1] (13)Permission
denied: Berkeley DB error while opening environment for filesystem
/home/faheem/subversion/db:

But my home filesystem has global read permission.

                                                                 Faheem.


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

RE: beginner question

Posted by Sander Striker st...@apache.org.
 From: news [mailto:news@main.gmane.org]On Behalf Of Faheem Mitha
 Sent: Monday, January 27, 2003 12:29 AM

[...]
 I have in my /etc/apache2/mods-available/dav_svn.conf
 
 # dav_svn.conf - Example Subversion/Apache configuration
 #
 # For details and further options see the Apache user manual.
 
 # Location URL ... /Location
 # URL controls how the repository appears to the outside world.
 # In this example clients access the repository as
 # http://hostname/svn/repos
 Location /svn/repos
 
   # DAV svn
    ^^^^^^^^^

Uncomment this line.

 
   # set this to
   # SVNPath /var/svn
     SVNPath /home/faheem/subversion
 
 [authentication stuff all commented out. Don't want to bother with
 this for the moment]
 
 /Location
 
[...]
 However, I am currently getting error messages like 
 
 svn: RA layer request failed
 svn: PROPFIND of /: 405 Method Not Allowed
 
 when I try to do anything. 

What does your apache error log say?
Could it be that your apache user doesn't have rw permissions to
/home/faheem/subversion?


Sander


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