You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Eli Hadad <el...@gmail.com> on 2008/07/11 22:34:47 UTC

Problems in setting up SVN with http

Hi,

I am trying to setup SVN repository on my Fedora9 machine.
Tried to find some answers to my problems using google with no success, I
hope you could help me.

I simply followed the instruction in the red book and other tutorials and
have the following two problems.

First in subversion.conf which is one of the httpd config files I have the
following configuration:

LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

<Location /svn>
   DAV svn
   SVNParentPath /Store/SVN-REPOs/
</Location>

I created the directory /Store/SVN-REPOs
Created a new repository under /Store/SVN-REPOs

svnadmin create /Store/SVN-REPOs/myProject

then I changed the permission of /Store/SVN-REPOs to apache
I don't have SELinux configuration, so no need for additional permission
changes.

Trying to browse: http://home-linux/svn/ ,  I get error:
You don't have permission to access /svn on this server.

When trying to browse: http://home-linux/svn/myProject , I can see the empty
repository I created.
I am using SVNParentPath directive in the http configuration yet not being
able to browse the parent directory.

Second I tried to import some code into the new repository I created.
I used the following command:

svn import myProject http://home-linux/svn/myProject/trunk -m "Initial
import"

And got the following error:
svn: applying log message to
/svn/myProject/!svn/wbl/16d02436-25c9-49e8-a27a-47e1f7591491/0: 501 Method
Not Implemented (http://home-linux)

TIA,
Eli

Re: Problems in setting up SVN with http

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jul 11, 2008, at 17:34, Eli Hadad wrote:

> I am trying to setup SVN repository on my Fedora9 machine.
> Tried to find some answers to my problems using google with no  
> success, I hope you could help me.
>
> I simply followed the instruction in the red book and other  
> tutorials and have the following two problems.
>
> First in subversion.conf which is one of the httpd config files I  
> have the following configuration:
>
> LoadModule dav_svn_module     modules/mod_dav_svn.so
> LoadModule authz_svn_module   modules/mod_authz_svn.so
>
> <Location /svn>
>    DAV svn
>    SVNParentPath /Store/SVN-REPOs/
> </Location>
>
> I created the directory /Store/SVN-REPOs
> Created a new repository under /Store/SVN-REPOs
>
> svnadmin create /Store/SVN-REPOs/myProject
>
> then I changed the permission of /Store/SVN-REPOs to apache
> I don't have SELinux configuration, so no need for additional  
> permission changes.
>
> Trying to browse: http://home-linux/svn/ ,  I get error:
> You don't have permission to access /svn on this server.
>
> When trying to browse: http://home-linux/svn/myProject , I can see  
> the empty repository I created.
> I am using SVNParentPath directive in the http configuration yet  
> not being able to browse the parent directory.

That's normal. If you expected to see a list of repositories here,  
you should add "SVNListParentPath on" to the apache configuration.


> Second I tried to import some code into the new repository I created.
> I used the following command:
>
> svn import myProject http://home-linux/svn/myProject/trunk -m  
> "Initial import"
>
> And got the following error:
> svn: applying log message to /svn/myProject/!svn/wbl/ 
> 16d02436-25c9-49e8-a27a-47e1f7591491/0: 501 Method Not Implemented  
> (http://home-linux)

In Subversion prior to 1.5 at least, you certainly needed to create  
the intermediate directories first. So in your case, you need to "svn  
mkdir" myProject before you can "svn import" to myProject/trunk.


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