Only today I could try your advice.
I'm using the following software:
++++++++++++++++++++++++++
Fedora Core 3 2.6.12-1.1381_FC3
httpd-suexec-2.0.53-3.3
httpd-2.0.53-3.3
svn, version 1.4.3 (r23084) compiled Feb 20 2007, 14:58:04
++++++++++++++++++++++++++
Following your advice, now my SUBVERSION config file looks like the following:
++++++ /etc/httpd/conf.d/subversion.conf +++++++
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /svn>
DAV svn
SVNParentPath /var/lib/svn
</Location>
+++++++++++++
It still fails on a LOCK request with 405.
Asking yum to update httpd.i386 returns that there are no updates available.
Any advice?
Thanks,
Costa.
Mark Lavi <[EMAIL PROTECTED]> wrote:
v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);}
st1\:*{behavior:url(#default#ieooui) } You did not tell us the
versions of Subversion and Apache that you are using. I cant help you directly
since Ive never played with Subversion.
However, you should verify that Subversion works fine with Apache *WITHOUT*
any authentication limitations (remove the LimitExcept requirements). If you
dont understand this suggestion, then please start reading the documentation
suggestions below.
If everything works fine without the limitations (like your LOCK command),
then you have isolated the issue to that configuration. Build up the
LimitExcept stanza with each unauthenticated method you want to enable to see
if resolves the issue. Otherwise, youve probably found an issue with
Subversion or Apache and you may need to upgrade to eliminate any bugs that
exist in older versions.
I suggest you read the Subversion Apache configuration chapter as recommended
by the Subversion installation guide.
http://svnbook.red-bean.com/nightly/en/svn.serverconfig.html
Of course, read the documentation on the Apache LimitExcept directive as well!
Good luck,
--Mark
Mark Lavi, Enterprise Web Management Team @ SGI
mailto:[EMAIL PROTECTED] || phone:+1-650-933-7707
---------------------------------
From: Backup e-mail [mailto:[EMAIL PROTECTED]
Sent: Friday, March 02, 2007 1:32 AM
To: [email protected]
Subject: [EMAIL PROTECTED] help needed in config of httpd.conf to fix "405
Method Not Allowed"
Good'day,
On a PC with Fedora Core 3 on, I need some help in configuring the http
server
to allow subversion's LOCK directive. All other subversion's directives work as
expected.
Subversion guys tell me it's an Apache config issue.
Whenever I issue a LOCK request, Apache returns "405 Method Not Allowed".
Using strace I've recorded Apache high level system calls while submitting
two Subversion requests, a CHECKOUT, which works as expected, and a LOCK which
returns "405 Method Not Allowed":
strace svn co http://zinzalusa/svn/ContactsToLDIF
strace svn lock http://zinzalusa/svn/ContactsToLDIF/ContactsToLDIF.bas
I've attached the relevant lines of the two logs.
If that's not enough or something different is needed, please advise.
I really do not know what else I can do to investigate and fix this problem.
I did not change httpd.conf, that is exactly the same as it comes
with Fedora Core 3.
The specific Subversion config file in Apache is subversion.conf and it is
attached.
I'm not an Apache expert and this issue is delaying the deployment of
Subversion.
Can somebody please explain what to do to fix it?
Your help is very much appreciated.
Thanks,
Costa
---------------------- subversion.conf --------------------------------
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /svn>
DAV svn
SVNParentPath /var/lib/svn
<LimitExcept GET PROPFIND OPTIONS REPORT>
AuthType Basic
AuthName "Subversion Server"
AuthUserFile /etc/httpd/svn-auth-file
Require valid-user
</LimitExcept>
</Location>
=======================================================================
-------------------- CHECKOUT trace -------------------------------
read(12, "PROPFIND /svn/ContactsToLDIF/Con"..., 8000) = 301
gettimeofday({1172669309, 13935}, NULL) = 0
stat64("/var/www/html/svn/ContactsToLDIF/ContactsToLDIF.bas", 0xbff59234) = -1
ENOENT (No such file or directory)
lstat64("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/var/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/var/www/html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/var/www/html/svn", 0xbff59214) = -1 ENOENT (No such file or directory)
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 13
fstat64(13, {st_mode=S_IFREG|0644, st_size=21544, ...}) = 0
mmap2(NULL, 21544, PROT_READ, MAP_SHARED, 13, 0) = 0xb776f000
close(13) = 0
futex(0xb7cf914c, FUTEX_WAKE, 2147483647) = 0
open("/var/lib/svn/ContactsToLDIF/format", O_RDONLY) = 13
read(13, "5\n", 80) = 2
close(13) = 0
open("/var/lib/svn/ContactsToLDIF/db/fs-type", O_RDONLY) = 13
read(13, "fsfs\n", 4096) = 5
close(13) = 0
open("/var/lib/svn/ContactsToLDIF/db/fs-type", O_RDONLY) = 13
read(13, "fsfs\n", 4096) = 5
close(13) = 0
open("/var/lib/svn/ContactsToLDIF/db/current", O_RDONLY) = 13
close(13) = 0
open("/var/lib/svn/ContactsToLDIF/db/format", O_RDONLY) = 13
read(13, "2\n", 80) = 2
close(13) = 0
open("/var/lib/svn/ContactsToLDIF/db/uuid", O_RDONLY) = 13
read(13, "7781e80b-232a-0410-a02c-8069c83c"..., 4096) = 37
close(13) = 0
open("/var/lib/svn/ContactsToLDIF/db/current", O_RDONLY) = 13
read(13, "2 2 1\n", 80) = 6
close(13) = 0
------------------- LOCK trace ------------------------------
semop(950283, 0xb7d99740, 1) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN, revents=POLLIN}], 2, -1) = 1
accept(3, {sa_family=AF_INET6, sin6_port=htons(43178), inet_pton(AF_INET6,
"::ffff:127.0.0.1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 12
semop(950283, 0xb7d99746, 1) = 0
getsockname(12, {sa_family=AF_INET6, sin6_port=htons(80), inet_pton(AF_INET6,
"::ffff:127.0.0.1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
fcntl64(12, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(12, F_SETFL, O_RDWR|O_NONBLOCK) = 0
read(12, 0xb91021b0, 8000) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=12, events=POLLIN, revents=POLLIN}], 1, 120000) = 1
read(12, "LOCK /svn/ContactsToLDIF/Contact"..., 8000) = 256
gettimeofday({1172669309, 46159}, NULL) = 0
stat64("/var/www/html/svn/ContactsToLDIF/ContactsToLDIF.bas", 0xbff59234) = -1
ENOENT (No such file or directory)
lstat64("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/var/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/var/www/html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/var/www/html/svn", 0xbff59214) = -1 ENOENT (No such file or directory)
open("/etc/httpd/svn-auth-file", O_RDONLY) = 13
fstat64(13, {st_mode=S_IFREG|0644, st_size=49, ...}) = 0
read(13, "costantino:$apr1$Wy.Gr...$lZDxpc"..., 4096) = 49
close(13) = 0
poll([{fd=12, events=POLLIN, revents=POLLIN}], 1, 120000) = 1
read(12, "<?xml version=\"1.0\" encoding=\"ut"..., 8000) = 145
writev(12, [{"HTTP/1.1 405 Method Not Allowed\r"..., 225}, {"<!DOCTYPE HTML
PUBLIC \"-//IETF//"..., 334}], 2) = 559
write(9, "127.0.0.1 - costantino [28/Feb/2"..., 152) = 152
shutdown(12, 1 /* send */) = 0
poll([{fd=12, events=POLLIN, revents=POLLIN|POLLHUP}], 1, 2000) = 1
read(12, "", 512) = 0
close(12) = 0
read(5, 0xbff5958f, 1) = -1 EAGAIN (Resource temporarily unavailable)
semop(950283, 0xb7d99740, 1) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}], 2, -1) = -1 EINTR
(Interrupted system call)
--- SIGINT (Interrupt) @ 0 (0) ---
brk(0xb910d000) = 0xb910d000
close(6) = 0
close(5) = 0
exit_group(0) = ?
=======================================================================================
---------------------------------
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
---------------------------------
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.