FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 12-22-2007, 12:51 AM
Timothy Murphy
 
Default Http access to SVN, anyone?

I have access to my SVN repository from a remote client
using svnserve, but not through http .

I guess the problem probably lies in httpd.conf ,
but I haven't come across a document that says
exactly what changes one has to make for svn .
(I do have mod_dav_svn installed.)

Any enlightenment or pointers gratefully received.

--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-22-2007, 03:08 AM
"Arthur Pemberton"
 
Default Http access to SVN, anyone?

On Dec 21, 2007 7:51 PM, Timothy Murphy <gayleard@eircom.net> wrote:
>
> I have access to my SVN repository from a remote client
> using svnserve, but not through http .
>
> I guess the problem probably lies in httpd.conf ,
> but I haven't come across a document that says
> exactly what changes one has to make for svn .
> (I do have mod_dav_svn installed.)
>
> Any enlightenment or pointers gratefully received.


http://svnbook.red-bean.com/


--
Fedora 7 : sipping some of that moonshine
( www.pembo13.com )

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-22-2007, 12:59 PM
Timothy Murphy
 
Default Http access to SVN, anyone?

Arthur Pemberton wrote:

>> I have access to my SVN repository from a remote client
>> using svnserve, but not through http .
>>
>> I guess the problem probably lies in httpd.conf ,
>> but I haven't come across a document that says
>> exactly what changes one has to make for svn .
>> (I do have mod_dav_svn installed.)
>>
>> Any enlightenment or pointers gratefully received.

> http://svnbook.red-bean.com/

This is a bit like saying the answer is in the Bible.

I actually have the online book on my computer,
and have followed the rather meagre instructions on this point,
but get the errors above.

I can checkout a project with svnserve:
=========================================
[tim@elizabeth tmp]$ svn checkout
svn://www.gayleard.com/var/www/svn/Maths/Penrose Penrose
A Penrose/trunk
A Penrose/trunk/penrose.ins
A Penrose/trunk/penrose.dtx
A Penrose/trunk/README
A Penrose/brances
A Penrose/tags
Checked out revision 1.
=========================================
But I cannot checkout with http:
=========================================
[tim@elizabeth tmp]$ rm -rf Penrose
[tim@elizabeth tmp]$ svn checkout
http://www.gayleard.com/var/www/svn/Maths/Penrose Penrose
svn: PROPFIND request failed on '/var/www/svn/Maths/Penrose'
svn: PROPFIND of '/var/www/svn/Maths/Penrose': 405 Method Not Allowed
(http://www.gayleard.com)
=========================================
It isn't even allowed on the same computer:
=========================================
[tim@alfred tmp]$ svn checkout http://localhost/var/www/svn/Maths/Penrose
Penrose
svn: PROPFIND request failed on '/var/www/svn/Maths/Penrose'
svn: PROPFIND of '/var/www/svn/Maths/Penrose': 405 Method Not Allowed
(http://localhost)
=========================================


--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-22-2007, 03:51 PM
Gijs
 
Default Http access to SVN, anyone?

Timothy Murphy wrote:

Arthur Pemberton wrote:




I have access to my SVN repository from a remote client
using svnserve, but not through http .

I guess the problem probably lies in httpd.conf ,
but I haven't come across a document that says
exactly what changes one has to make for svn .
(I do have mod_dav_svn installed.)

Any enlightenment or pointers gratefully received.






http://svnbook.red-bean.com/



This is a bit like saying the answer is in the Bible.

I actually have the online book on my computer,
and have followed the rather meagre instructions on this point,
but get the errors above.

I can checkout a project with svnserve:
=========================================
[tim@elizabeth tmp]$ svn checkout
svn://www.gayleard.com/var/www/svn/Maths/Penrose Penrose
A Penrose/trunk
A Penrose/trunk/penrose.ins
A Penrose/trunk/penrose.dtx
A Penrose/trunk/README
A Penrose/brances
A Penrose/tags
Checked out revision 1.
=========================================
But I cannot checkout with http:
=========================================
[tim@elizabeth tmp]$ rm -rf Penrose
[tim@elizabeth tmp]$ svn checkout
http://www.gayleard.com/var/www/svn/Maths/Penrose Penrose
svn: PROPFIND request failed on '/var/www/svn/Maths/Penrose'
svn: PROPFIND of '/var/www/svn/Maths/Penrose': 405 Method Not Allowed
(http://www.gayleard.com)
=========================================
It isn't even allowed on the same computer:
=========================================
[tim@alfred tmp]$ svn checkout http://localhost/var/www/svn/Maths/Penrose
Penrose
svn: PROPFIND request failed on '/var/www/svn/Maths/Penrose'
svn: PROPFIND of '/var/www/svn/Maths/Penrose': 405 Method Not Allowed
(http://localhost)
=========================================




Well, that is because you are accessing the SVN repository with the
wrong url.

Because you are requesting your HTTP server for the data, and not the
svn server, the url is also different.

And you will have to create some kind of subversion config for Apache.

Mine is like this:

LoadModule dav_svn_module**** modules/mod_dav_svn.so

LoadModule authz_svn_module** modules/mod_authz_svn.so



<Location /svn>

* DAV svn

* SVNPath /data/www/svn



* AuthzSVNAccessFile /data/www/svn/conf/authz

* Require valid-user



* # Limit write permission to list of valid users.

* <LimitExcept GET PROPFIND OPTIONS REPORT>

*** # Require SSL connection for password protection.

*** AuthType Basic

*** AuthName "Subversion Repository"

*** AuthUserFile /etc/svn-auth-file



*** SSLRequireSSL

* </LimitExcept>

</Location>



This allows me to access my repository through http://myservername/svn/
which is located at /data/www/svn

so I can do for example:

svn co http://myservername/svn/

As you see in the config file, you also have to create some kind of
authentication mechanism, to allow the mod_dav_svn module to
authenticate your user.



Hope this helps




--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-22-2007, 03:51 PM
"Arthur Pemberton"
 
Default Http access to SVN, anyone?

On Dec 22, 2007 7:59 AM, Timothy Murphy <gayleard@eircom.net> wrote:
> Arthur Pemberton wrote:
>
> >> I have access to my SVN repository from a remote client
> >> using svnserve, but not through http .
> >>
> >> I guess the problem probably lies in httpd.conf ,
> >> but I haven't come across a document that says
> >> exactly what changes one has to make for svn .
> >> (I do have mod_dav_svn installed.)
> >>
> >> Any enlightenment or pointers gratefully received.
>
> > http://svnbook.red-bean.com/
>
> This is a bit like saying the answer is in the Bible.
>
> I actually have the online book on my computer,
> and have followed the rather meagre instructions on this point,
> but get the errors above.

At which point it is really up to you to read the Bible or not. But I
will give you a point in the right direction.

http://svnbook.red-bean.com/en/1.4/svn.serverconfig.httpd.html

And for the record, I read through that entire thing myself in order
to find out how to setup SVN via HTTP -- it isn't difficult.


--
Fedora 7 : sipping some of that moonshine
( www.pembo13.com )

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-22-2007, 04:18 PM
Les Mikesell
 
Default Http access to SVN, anyone?

Gijs wrote:


Penrose
svn: PROPFIND request failed on '/var/www/svn/Maths/Penrose'
svn: PROPFIND of '/var/www/svn/Maths/Penrose': 405 Method Not Allowed
(http://localhost)
=========================================



Well, that is because you are accessing the SVN repository with the
wrong url.
Because you are requesting your HTTP server for the data, and not the
svn server, the url is also different.
And you will have to create some kind of subversion config for Apache.


If you've installed the fedora subversion and mod_dav_svn packages, the
config will exist in /etc/httpd/conf.d/subversion.conf. You just have
to uncomment the lines and adjust for your location.



--
Les Mikesell
lesmikesell@gmail.com

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-22-2007, 07:44 PM
Les Mikesell
 
Default Http access to SVN, anyone?

Timothy Murphy wrote:

On Saturday 22 December 2007 05:18:24 pm Les Mikesell wrote:

Gijs wrote:

Penrose
svn: PROPFIND request failed on '/var/www/svn/Maths/Penrose'
svn: PROPFIND of '/var/www/svn/Maths/Penrose': 405 Method Not Allowed
(http://localhost)
=========================================



If you've installed the fedora subversion and mod_dav_svn packages, the
config will exist in /etc/httpd/conf.d/subversion.conf. You just have
to uncomment the lines and adjust for your location.


I have indeed done that.
From /etc/httpd/conf.d/subversion.conf :
=========================================
<Location /repos>
DAV svn
SVNParentPath /var/www/svn
#
# # Limit write permission to list of valid users.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
# # Require SSL connection for password protection.
# # SSLRequireSSL
#
# AuthType Basic
# AuthName "Subversion repository"
# AuthUserFile /etc/svn-auth-file
# Require valid-user
# </LimitExcept>
</Location>
=========================================


It should work, then, assuming you've taken the url mapping to /repos
into account and made the target read/writable by apache. You may find
better error messages in /var/log/httpd/error_log.


--
Les Mikesell
lesmikesell@gmail.com


--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-23-2007, 01:44 AM
Timothy Murphy
 
Default Http access to SVN, anyone?

Arthur Pemberton wrote:

>> >> I have access to my SVN repository from a remote client
>> >> using svnserve, but not through http .
>> >>
>> >> I guess the problem probably lies in httpd.conf ,
>> >> but I haven't come across a document that says
>> >> exactly what changes one has to make for svn .
>> >> (I do have mod_dav_svn installed.)
>> >>
>> >> Any enlightenment or pointers gratefully received.
>>
>> > http://svnbook.red-bean.com/
>>
>> This is a bit like saying the answer is in the Bible.
>>
>> I actually have the online book on my computer,
>> and have followed the rather meagre instructions on this point,
>> but get the errors above.
>
> At which point it is really up to you to read the Bible or not. But I
> will give you a point in the right direction.
>
> http://svnbook.red-bean.com/en/1.4/svn.serverconfig.httpd.html

I assure you I have read this carefully, several times,
and I believe I have followed the instructions exactly.

> And for the record, I read through that entire thing myself in order
> to find out how to setup SVN via HTTP -- it isn't difficult.

As I said, I have read it, and there was nothing I found hard to follow.
But I get the error "405 Method Not Allowed".

Actually, I don't think I have made any changes
in /etc/httpd/conf/httpd.conf .
The only file I have edited is /etc/httpd/conf.d/subversion.conf ,
which seemed to contain all the code discussed
in the section of the online book above.


--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-23-2007, 02:16 AM
Tom Horsley
 
Default Http access to SVN, anyone?

On Sun, 23 Dec 2007 02:44:51 +0000
Timothy Murphy <gayleard@eircom.net> wrote:

> As I said, I have read it, and there was nothing I found hard to follow.
> But I get the error "405 Method Not Allowed".

I noticed all my web server setup on fedora 8 stopped serving about
half the pages I had setup when I downloaded some update that
installed mod_security. Apache was already tricky to configure,
then mod_security added an extra layer of impenetrable gibberish.
I got everything working again via "yum erase mod_security" :-).

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-23-2007, 03:02 AM
"Arthur Pemberton"
 
Default Http access to SVN, anyone?

On Dec 22, 2007 8:44 PM, Timothy Murphy <gayleard@eircom.net> wrote:
> Arthur Pemberton wrote:
>
> >> >> I have access to my SVN repository from a remote client
> >> >> using svnserve, but not through http .
> >> >>
> >> >> I guess the problem probably lies in httpd.conf ,
> >> >> but I haven't come across a document that says
> >> >> exactly what changes one has to make for svn .
> >> >> (I do have mod_dav_svn installed.)
> >> >>
> >> >> Any enlightenment or pointers gratefully received.
> >>
> >> > http://svnbook.red-bean.com/
> >>
> >> This is a bit like saying the answer is in the Bible.
> >>
> >> I actually have the online book on my computer,
> >> and have followed the rather meagre instructions on this point,
> >> but get the errors above.
> >
> > At which point it is really up to you to read the Bible or not. But I
> > will give you a point in the right direction.
> >
> > http://svnbook.red-bean.com/en/1.4/svn.serverconfig.httpd.html
>
> I assure you I have read this carefully, several times,
> and I believe I have followed the instructions exactly.
>
> > And for the record, I read through that entire thing myself in order
> > to find out how to setup SVN via HTTP -- it isn't difficult.
>
> As I said, I have read it, and there was nothing I found hard to follow.
> But I get the error "405 Method Not Allowed".


I must have missed that email. I didn't see where you said where you read it.


> Actually, I don't think I have made any changes
> in /etc/httpd/conf/httpd.conf .
> The only file I have edited is /etc/httpd/conf.d/subversion.conf ,
> which seemed to contain all the code discussed
> in the section of the online book above.


Please paste your /etc/httpd/conf.d/subversion.conf for inspection


--
Fedora 7 : sipping some of that moonshine
( www.pembo13.com )

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 03:34 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org