SVNForum.org Forum Index FAQFAQ SearchSearch MemberlistMemberlist RegisterRegister Log inLog in

Download Subversion 1.6.12: Free Subversion TrainingWindows - Free Subversion TrainingCentOS 5 - Free Subversion TrainingRedhat Enterprise Linux 5 - Free Subversion TrainingUbuntu 9/10.04 - Free Subversion TrainingDebian Lenny (5)

Free Subversion Training: Free Subversion TrainingAll About Subversion Hook Scripts Free Subversion TrainingSubversion Locking Free Subversion TrainingAll About Checkouts
 
Forbidden access or bad repository ?

 
Post new topic   Reply to topic    SVNForum.org Forum Index -> Apache
View previous topic :: View next topic  
Author Message
daneel



Joined: 31 Mar 2005
Posts: 2
Location: Montreal

PostPosted: Thu Mar 31, 2005 11:39 pm    Post subject: Forbidden access or bad repository ? Reply with quote

Hi,

I'm new to Subversion and I'm trying to set up the mod_da_svn module on my Apache 2.0.52 server, just to test it on localhost.
So I followed the instructions in the SVN book, I added the LoadModule directive, created an auth_file and added the following Location thing to httpd.conf

Code:

<Location /svn>
   DAV svn
   SVNParentPath "W:/svn"
   AuthType Basic
   AuthName "Subversion repository"
   AuthUserFile "w:/svn/auth.file
   Require valid-user
</Location>


Knowing that my SVN repository is in w:\svn (on Windows XP SP2).
When I try to access "http://localhost/svn" I'm asked for authentication and when I authenticate I get the following message :

Code:

Forbidden

You don't have permission to access /svn on this server.
Apache/2.0.52 (Win32) SVN/1.1.3 PHP/4.3.9 DAV/2 Server at localhost Port 80


Which seems to imply that my apache/svn setup is working but not the repository access thing. And in my apache error log, this is what I get :
Code:

[Thu Mar 31 22:33:06 2005] [error] [client 127.0.0.1] Could not fetch resource information.  [403, #0]
[Thu Mar 31 22:33:06 2005] [error] [client 127.0.0.1] The URI does not contain the name of a repository.  [403, #190001]


So I tried to get deeper into my repository and accessed http://localhost/svn/myproject and then I got this XML message :
Code:

<D:error>
<C:error/>
<m:human-readable errcode="720003">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>


Any idea of what's wrong ? Because I'm not an expert with Apache configuration and I'm kind of lost...

Thank you very much in advance
_________________
daneel
Back to top
View user's profile Send private message
Manuzhai



Joined: 16 Dec 2004
Posts: 166
Location: Amsterdam

PostPosted: Fri Apr 01, 2005 2:01 am    Post subject: Reply with quote

Note that you told Apache W:/svn is your SVNParentPath: any repositories should be subdirectories of that directory. So you should have:

W:/svn/repos/db
W:/svn/repos/hooks
W:/svn/repos/conf

etc. You sound like you have W:/svn/db instead...
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
daneel



Joined: 31 Mar 2005
Posts: 2
Location: Montreal

PostPosted: Fri Apr 01, 2005 10:17 am    Post subject: Reply with quote

Thank you very much. You hit the bull's eye ! I misunderstood the SVNParentPath directive. I just replaced it by SVNPath and now everything works just fine.
Thanks a lot...
_________________
daneel
Back to top
View user's profile Send private message
Manuzhai



Joined: 16 Dec 2004
Posts: 166
Location: Amsterdam

PostPosted: Sun Apr 03, 2005 6:25 pm    Post subject: Reply with quote

Glad to be of service. Smile
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Sriram



Joined: 18 Mar 2008
Posts: 2

PostPosted: Tue Mar 18, 2008 9:12 am    Post subject: Reply with quote

I have repository structure like D:\SVN\Project1
In the httpd.conf I have given as
<Location /SVN>
DAV svn
SVNPath "D:/SVN"
</Location>

Could you please tell me whether its correct or any thing needs to be changed?
Back to top
View user's profile Send private message Send e-mail
View previous topic :: View next topic  
Post new topic   Reply to topic    SVNForum.org Forum Index -> Apache All times are GMT - 4 Hours
Page 1 of 1
Display posts from previous:   
Google
 
Web SVNForum.org