# setting up a git repo on apache

6 messages from 2006-08-09 to 2006-08-10. Participants: Alan Larkin, Johannes Schindelin, Rutger Nijlunsing.
Thread: https://gitlist.dev/t/5184

## Alan Larkin, 2006-08-09 15:58

Subject: setting up a git repo on apache
Message-ID: <44DA060B.2050601@eircom.net>
URL: https://gitlist.dev/e/44DA060B.2050601%40eircom.net

```
New user ... Hi.

I realise that this is really an apache question, but Im not getting any
help from their mailing lists and figure that there must be someone here
whos done this.

Can someone please help me get a GIT repo running on Apache 2.
Specifically my problem is with DAV.

$ git push http://localhost:/webdav/git/myproj master
Error: no DAV locking support on remote repo

I have dav_fs.conf, dav_fs.load, and dav.load in mods-enabled. They
load the modules and set

DAVLockDB /var/lock/apache2/DAV.lock

Apache owns and has full access to that directory.

I have removed all .htaccess files below /var/www/webdav. I am not
using any form of authentication. I have tried with and without aliases
for the repo directory. I have tried setting DAV on for
/var/www/webdav/git, and /var/www/webdav/git/myproj.

Its always the same. No DAV locking support.

If could help or even point me to some appropriate documentation (Ive
looked and looked and cant find any) Id appreciate it.

Thanks.

```

## Johannes Schindelin, 2006-08-09 16:35

Subject: Re: setting up a git repo on apache
Message-ID: <Pine.LNX.4.63.0608091831320.1800@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0608091831320.1800%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <44DA060B.2050601@eircom.net>

```
Hi,

On Wed, 9 Aug 2006, Alan Larkin wrote:

> $ git push http://localhost:/webdav/git/myproj master
> Error: no DAV locking support on remote repo

What do the access_log and the error_log say about this?

It could also be that you have a "Require valid-user" somewhere in there 
by mistake.

Further, you might want to check if it works _with_ authentication (I 
never tried without, and I am not sure if it should be allowed to begin 
with).

There is a recent thread by Junio, Rutger and me, which might help you:

http://thread.gmane.org/gmane.comp.version-control.git/24816/focus=24861

Hth,
Dscho

```

## Rutger Nijlunsing, 2006-08-09 16:43

Subject: Re: setting up a git repo on apache
Message-ID: <20060809164305.GA7841@nospam.com>
URL: https://gitlist.dev/e/20060809164305.GA7841%40nospam.com
In-Reply-To: <44DA060B.2050601@eircom.net>

```
On Wed, Aug 09, 2006 at 04:58:03PM +0100, Alan Larkin wrote:
> New user ... Hi.
> 
> I realise that this is really an apache question, but Im not getting any
> help from their mailing lists and figure that there must be someone here
> whos done this.
> 
> Can someone please help me get a GIT repo running on Apache 2.
> Specifically my problem is with DAV.
> 
> $ git push http://localhost:/webdav/git/myproj master
> Error: no DAV locking support on remote repo

This 'localhost:' is a typo, right?

(just to be sure)


-- 
Rutger Nijlunsing ---------------------------------- eludias ed dse.nl
never attribute to a conspiracy which can be explained by incompetence
----------------------------------------------------------------------

```

## Alan Larkin, 2006-08-09 17:01

Subject: Re: setting up a git repo on apache
Message-ID: <44DA14FF.7080402@eircom.net>
URL: https://gitlist.dev/e/44DA14FF.7080402%40eircom.net
In-Reply-To: <Pine.LNX.4.63.0608091831320.1800@wbgn013.biozentrum.uni-wuerzburg.de>

```
Johannes Schindelin wrote:
> Hi,
> 
> On Wed, 9 Aug 2006, Alan Larkin wrote:
> 
>> $ git push http://localhost:/webdav/git/myproj master
>> Error: no DAV locking support on remote repo
> 
> What do the access_log and the error_log say about this?
> 
> It could also be that you have a "Require valid-user" somewhere in there 
> by mistake.
> 
> Further, you might want to check if it works _with_ authentication (I 
> never tried without, and I am not sure if it should be allowed to begin 
> with).
> 
> There is a recent thread by Junio, Rutger and me, which might help you:
> 
> http://thread.gmane.org/gmane.comp.version-control.git/24816/focus=24861
> 
> Hth,
> Dscho
> 
> 
> 

I initially had authentication in place (which was working insofar as I
couldnt browse the repo without logging in) but I removed it to simplify
the process of tracking down the DAV problem. I have also removed all
.htaccess files so nothing can be overriding apache2.conf and that only
contains:

<Directory /var/www/webdav>
	Order allow,deny
        Allow from localhost
        DAV on
</Directory>


Ill look into that previous thread. Apologies for not finding it before
posting.

```

## Alan Larkin, 2006-08-09 17:02

Subject: Re: setting up a git repo on apache
Message-ID: <44DA1531.3@eircom.net>
URL: https://gitlist.dev/e/44DA1531.3%40eircom.net
In-Reply-To: <20060809164305.GA7841@nospam.com>

```
Rutger Nijlunsing wrote:
> On Wed, Aug 09, 2006 at 04:58:03PM +0100, Alan Larkin wrote:
>> New user ... Hi.
>>
>> I realise that this is really an apache question, but Im not getting any
>> help from their mailing lists and figure that there must be someone here
>> whos done this.
>>
>> Can someone please help me get a GIT repo running on Apache 2.
>> Specifically my problem is with DAV.
>>
>> $ git push http://localhost:/webdav/git/myproj master
>> Error: no DAV locking support on remote repo
> 
> This 'localhost:' is a typo, right?
> 
> (just to be sure)
> 
> 

Um ... it wasnt actually. I was copying this line from "A git core
tutorial for developers":

$ git push <public-host>:/path/to/my-git.git master

Although I did think it curious enough to try it with and without the
colon (it is the colon youre questioning right?).

```

## Alan Larkin, 2006-08-10 09:43

Subject: Re: setting up a git repo on apache
Message-ID: <44DAFFAA.9040507@eircom.net>
URL: https://gitlist.dev/e/44DAFFAA.9040507%40eircom.net
In-Reply-To: <Pine.LNX.4.63.0608091831320.1800@wbgn013.biozentrum.uni-wuerzburg.de>

```
Johannes Schindelin wrote:
> Hi,
> 
> On Wed, 9 Aug 2006, Alan Larkin wrote:
> 
>> $ git push http://localhost:/webdav/git/myproj master
>> Error: no DAV locking support on remote repo
> 
> What do the access_log and the error_log say about this?
> 
> It could also be that you have a "Require valid-user" somewhere in there 
> by mistake.
> 
> Further, you might want to check if it works _with_ authentication (I 
> never tried without, and I am not sure if it should be allowed to begin 
> with).
> 
> There is a recent thread by Junio, Rutger and me, which might help you:
> 
> http://thread.gmane.org/gmane.comp.version-control.git/24816/focus=24861
> 
> Hth,
> Dscho
> 
> 
> 
For the record, I followed the steps in the above linked thread as
closely as possible but the problem persists. It did however contain the
suggestion to use litmus to test the webdav and thats proving curious
insofar as several tests are failing, but in a not entirely reproducible
way. I mean, on one test I might see

14. cond_put.............. FAIL (PUT conditional on lock and etag
failed: 412 Precondition Failed)
15. fail_cond_put......... pass
16. cond_put_with_not..... pass
17. cond_put_corrupt_token WARNING: PUT failed with 400 not 423
    ...................... pass (with 1 warning)
18. complex_cond_put...... FAIL (PUT with complex conditional failed:
412 Precondition Failed)

and if run again I might see

14. cond_put.............. pass
15. fail_cond_put......... pass
16. cond_put_with_not..... pass
17. cond_put_corrupt_token WARNING: PUT failed with 400 not 423
    ...................... pass (with 1 warning)
18. complex_cond_put...... FAIL (PUT with complex conditional failed:
412 Precondition Failed)

and on another a different combination.

But this has no real place here, so I shall off and try find the
solution elsewhere and post back if its relevant.

Thanks for the help.

```
