fedora 下apache webdav方式部署git环境权限问题

本文描述了在使用Git进行Push操作时遇到的权限错误,详细记录了错误信息及Apache错误日志,指出问题根源在于权限不足,并提供了解决方案:将当前用户加入Apache用户组。

push发生如下错误

$ git push origin master 
Password: 
Password: 
Fetching remote heads...
  refs/
  refs/heads/
  refs/tags/
updating 'refs/heads/master'
  from 0000000000000000000000000000000000000000
  to   c169dbae92589f44bb734c1ded4a4ec6888f5ac2
Unable to lock remote branch refs/heads/master
Updating remote server info
PUT error: curl result=22, HTTP code=403
fatal: git-http-push failed

 apache错误日志如下:

[Thu Jun 28 14:53:24 2012] [error] [client 127.0.0.1] Could not save .locknull file.  [500, #0]
[Thu Jun 28 14:53:24 2012] [error] [client 127.0.0.1] (2)No such file or directory: Error opening /var/www/html/gitrepo/test.git/refs/heads/.DAV/.locknull for writing  [500, #0]
[Thu Jun 28 14:53:24 2012] [error] [client 127.0.0.1] Unable to PUT new contents for /gitrepo/test.git/info/refs.  [403, #0]
[Thu Jun 28 14:53:24 2012] [error] [client 127.0.0.1] (13)Permission denied: An error occurred while opening a resource.  [500, #0]

是权限问题,需要将当前用户加入apache用户组中

转载于:https://www.cnblogs.com/heroking2000/archive/2012/06/28/2568407.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值