You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Himanshu Raina <ra...@yahoo.com> on 2006/12/28 10:40:05 UTC

Urgent Help Required !!

Hi,

I have installed subversion-1.4.2 on FC6.The problem is that while trying to access the repository over http it gives me an error.The steps are listed below
Apache Server version = Apache/2.2.3

1> mkdir /usr/local/svn
2> svnadmin create /usr/local/svn/repository
3> Now i created a passwd file using htpasswd utility (the file is placed as /usr/local/apache2/bin/passwd)
./htpasswd -c passwd himanshu_raina
4>Then i created a file called svnaccessfile wherein the following access was defined
/usr/local/svn/repository/conf/svnaccessfile
---------------------------------------------------------------------
[groups]
admin = himanshu_raina
# Default access rule for ALL repositories
# Everyone can read, admins can write, Dan German is excluded.
[/]
* = r
@admin = rw
---------------------------------------------------------------------
5> In apache.conf i have added the following

<Location /svn>
  DAV svn
  SVNListParentPath on
  SVNParentPath /usr/local/svn/
  AuthType Basic
  AuthName "Subversion repository"
  AuthUserFile /usr/local/apache2/bin/passwd
  AuthzSVNAccessFile /usr/local/svn/repository/conf/svnaccessfile
  Require valid-user
</Location>
The problem is when i access it using
http://myserver.com/svn
it prompts for id/password after which i get the following error.

Forbidden

You don't have permission to access /svn/ on this server.


Please advice as to what could be wrong.

regards
Himanshu Raina




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Urgent Help Required !!

Posted by Lieven Govaerts <sv...@mobsol.be>.
Quoting Himanshu Raina <ra...@yahoo.com>:

> Hi,
>
> I have installed subversion-1.4.2 on FC6.The problem is that while trying to
> access the repository over http it gives me an error.The steps are listed
> below
> Apache Server version = Apache/2.2.3
>
> 1> mkdir /usr/local/svn
> 2> svnadmin create /usr/local/svn/repository
> 3> Now i created a passwd file using htpasswd utility (the file is placed as
> /usr/local/apache2/bin/passwd)
> ./htpasswd -c passwd himanshu_raina
> 4>Then i created a file called svnaccessfile wherein the following access was
> defined
> /usr/local/svn/repository/conf/svnaccessfile
> ---------------------------------------------------------------------
> [groups]
> admin = himanshu_raina
> # Default access rule for ALL repositories
> # Everyone can read, admins can write, Dan German is excluded.
> [/]
> * = r
> @admin = rw
> ---------------------------------------------------------------------
> 5> In apache.conf i have added the following
>
> <Location /svn>
>   DAV svn
>   SVNListParentPath on
>   SVNParentPath /usr/local/svn/
>   AuthType Basic
>   AuthName "Subversion repository"
>   AuthUserFile /usr/local/apache2/bin/passwd
>   AuthzSVNAccessFile /usr/local/svn/repository/conf/svnaccessfile
>   Require valid-user
> </Location>
> The problem is when i access it using
> http://myserver.com/svn
> it prompts for id/password after which i get the following error.
>
> Forbidden
>
> You don't have permission to access /svn/ on this server.
>
>
> Please advice as to what could be wrong.

Two possibilities:
a. if you want to see a list of repositories, you should change <Location /svn>
to <Location /svn/>.
b. to access one repository, you should use the url
http://myserver.com/svn/repository

hth,

Lieven

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

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

RE: Urgent Help Required !!

Posted by Erik Hemdal <er...@comprehensivepower.com>.

>Hi,

>I have installed subversion-1.4.2 on FC6.The problem is that while trying
to access the repository over http it gives me an >error.The steps are
listed below
>Apache Server version = Apache/2.2.3
 
 
Hello Himanshu:

I have also used Subversion on FC6.  I found that version 1.3.2 was included
when I installed the OS at the start.  Your post did not mention whether you
installed v1.4.2 from source or from an RPM package.  If it was from source,
you might be running into version conflicts -- where you are intending to
use v1.4.2 but because of how your PATH is set up (or where configuration
files are installed), the system is trying to use v1.3.2.

If it was from a package provided by an "unofficial" yum repository, then
there might be differences in how the package was created that is causing
difficulty.

You can check to see if you have a Subversion package with a command like
this:

	$ rpm -qa | grep subversion


I hope that this might help you resolve your issues.

Erik


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